BatchLabs / Batch-iOS-SDK

Batch SDK for iOS
https://batch.com/features
Other
29 stars 12 forks source link

BatchExtension.framework contains unsupported architectures '[x86_64, i386]' #17

Closed mboudaoud closed 5 years ago

mboudaoud commented 5 years ago

Hello,

We have been using the Batch iOS SDK for some time now, and we are having an issue when updating to the last version 1.13.2 (actually even with some earlier versions). We cannot publish our app to iTunes Connect due to this error: 'BatchExtension.framework contains unsupported architectures '[x86_64, i386]''. We are using Xcode 9.4.1 along with CocoaPods. Searching the web, we actually found out that it was due to some Simulator binaries included in the SDK, and that we could actually add a build phase script removing those binaries, but I don't think that this solution is sustainable.

abarisain commented 5 years ago

Hello,

That's right: BatchExtension needs a script to strip out the simulator binaries. If you already used our SDK successfully, you should already have added this script as a part of the setup process.

Unfortunately, there is no way around this. Radars have been opened over the year, and Apple didn't move. Xcode is optimized for projects that it compiles 100% by itself: even Carthage comes with such a script.

Note that 1.13.2 being compiled with Xcode 10, it might be incompatible with Xcode 9.4.1.

mboudaoud commented 5 years ago

All right thank you for the support, i'm gonna add the script detailed in this thread -> https://stackoverflow.com/a/30866648/6823868

abarisain commented 5 years ago

While this should work, I suggest sticking with the script we provide.