prebid-mobile-ios
prebid-mobile-ios copied to clipboard
'Unsupported Swift architecture' error when compiling for simulator
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:
- Build the framework by using
scripts/buildPrebidMobile.sh
- Add XCPrebidMobile.xcframework to iOS project
- Build for iOS simulator
- 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