Open AlexIzh opened 1 month ago
@AlexIzh this seems to be a xCode related issue and not a Prebid one.
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.
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 gettingUnsupported 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:
scripts/buildPrebidMobile.sh
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):
Sim Version: 17.4
Additional context I'm running it on M1 laptop, if I change
scripts/buildPrebidMobile.sh
to-arch arm64
foriphonesimulator
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