Skip to content

Build failure: Undefined symbols for x86_64 architecture in HCaptcha 2.9.3 #180

@arpanCode

Description

@arpanCode

Bug description

Build failure with HCaptcha 2.9.3 when used as transitive dependency through RevolutPayments/RevolutPay pod. The build succeeds with HCaptcha 2.9.2.

To Reproduce

  1. Create a new iOS project
  2. Add pod 'RevolutPayments/RevolutPay', '3.6.0' to Podfile
  3. Run pod install
  4. Build the project
  5. Observe build failure with linker error

Error Log

Undefined symbols for architecture x86_64:
"_$s8HCaptchaAAC6apiKey010passiveApiC07baseURL6locale4size11orientation5jsSrc6rqdata6sentry8endpoint9reportapi9assethost7imghost4host5theme11customTheme13diagnosticLogABSSSg_Sb10Foundation0G0VSgAU6LocaleVSgAA0A4SizeOAA0A11OrientationOAwTSbA4xTSSATSbtKcfc"

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1

Expected behavior

Project should build successfully as it does with HCaptcha 2.9.2

Environment

  • Xcode Version: 16.2
  • macOS Version: 15.2
  • RevolutPayments/RevolutPay version: 3.6.0
  • HCaptcha version causing issue: 2.9.3
  • HCaptcha version working: 2.9.2

Additional context

  • Issue only occurs when HCaptcha is pulled as transitive dependency
  • Direct integration of HCaptcha 2.9.2 works fine
  • Build settings include: EXCLUDED_ARCHS[config=Debug][sdk=iphonesimulator*] = arm64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions