prebid-mobile-ios icon indicating copy to clipboard operation
prebid-mobile-ios copied to clipboard

'Unsupported Swift architecture' error when compiling for simulator

Open AlexIzh opened this issue 9 months ago • 3 comments

Describe the bug I have build the framework by using scripts/buildPrebidMobile.sh script and now trying to integrate XCPrebidMobile.xcframework into current iOS application. When doing that I'm getting Unsupported Swift architecture for PrebidMobile-Swift.h file when trying to run an app in iOS simulator. It works fine for real device though.

To Reproduce Steps to reproduce the behavior:

  1. Build the framework by using scripts/buildPrebidMobile.sh
  2. Add XCPrebidMobile.xcframework to iOS project
  3. Build for iOS simulator
  4. See error

Expected behavior The framework could be integrated and used as for real devices so and for simulators for testing purposes.

Desktop (please complete the following information):

  • OS: MacOS Version 14.4 (23E214
  • Xcode: 15.4
  • Sim Version: 17.4

Additional context I'm running it on M1 laptop, if I change scripts/buildPrebidMobile.sh to -arch arm64 for iphonesimulator then it works fine. But it's not going to work if a few developers work on the same project with different machines or if CI is running on Intel chip

AlexIzh avatar May 14 '24 12:05 AlexIzh