CyberSource / cybersource-ios-sdk

The CyberSource InApp SDK enables developers to simply and securely incorporate mobile payments into their iOS applications.
Other
1 stars 1 forks source link

cybersource-ios-sdk Pod doesn't compile for Simulator M1 Macs #15

Open brbulic opened 2 years ago

brbulic commented 2 years ago

Issue:

ld: building for iOS Simulator, but linking in dylib built for iOS, file '[REDACTED]/Pods/cybersource-ios-sdk/Frameworks/InAppSDK.framework/InAppSDK' for architecture arm64

InAppSDK: Mach-O universal binary with 4 architectures: [i386:Mach-O dynamically linked shared library i386] [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm_v7:Mach-O dynamically linked shared library arm_v7] [arm64]
InAppSDK (for architecture i386):   Mach-O dynamically linked shared library i386
InAppSDK (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
InAppSDK (for architecture armv7):  Mach-O dynamically linked shared library arm_v7
InAppSDK (for architecture arm64):  Mach-O 64-bit dynamically linked shared library arm64

Xcode 13.1 (13A1030d) machine: Macbook Pro 16" M1 Max macOS version: Monterey 12.0.1 cybersource-ios-sdk Cocoapod version: 1.0.3

I assume that the compiled binary doesn't include arm64 simulator code for iOS Simulators running on M1 chips.

Workaround: start Xcode in Rosetta 2

brbulic commented 2 years ago

Any progress?

brbulic commented 2 years ago

Any progress?

chriswrightlulu commented 2 years ago

Also looking for an update here