prebid / prebid-mobile-ios

Prebid Mobile SDK for iOS applications
Apache License 2.0
46 stars 86 forks source link

'Unsupported Swift architecture' error when compiling for simulator #978

Open AlexIzh opened 1 month ago

AlexIzh commented 1 month ago

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):

jsligh commented 1 month ago

@AlexIzh this seems to be a xCode related issue and not a Prebid one.

YuriyVelichkoPI commented 1 month ago

I wouldn't close this issue. From time to time, we face requests that buildPrebidMobile.sh doesn't work in some circumstances. Since it is part of the repository, we should fix or delete it. I vote for fixing, especially considering that we are going to support SPM, and this script will actually build the framework for future publishing.