Shell script for remove the unneeded architectures

2019-08-16 17:55发布

问题:

I have tried to use the shell scripts of @Varrry and @pAkY88 on the question Submit to App Store issues: Unsupported Architecture x86 but they are not working while archiving,the unneeded architectures are not removed, so when I'm trying to upload to the Store I get the error: "Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]'."

The project (Swift) has arm64 armv7 and armv7s as valid architectures, the project is using a framework made by myself(in Swift), and some firebase frameworks(Objective-C), all this frameworks have the simulator slice because I'm using a continues integration and all the tests runs on the simulator.

The log from the script is here

标签: ios xcode shell