Search code examples
iosxcodeapp-storecarthageeureka-forms

Unsupported Architectures when uploading to App Store


I implemented a new library into my project (named Eureka), and now I get errors when trying to upload to the App Store / TestFlight.

enter image description here

These include "Unsupported architectures", "Invalid segment alignment", and "The Binary is invalid.. This binary does not seem to have been built with Apple's linker".

I did not have any of these errors before implemented Eureka. I am running Xcode 7.3

I should note I installed the framework via Carthage.


Solution

  • The problem was that Xcode precompiles the dynamic library for both the simulator (i386) and devices (x86_64). You can implement this run script to remove the unused architecture.