ERROR ITMS-9000: "Invalid architecture: Apps that include an app extension and a framework must support arm64

天涯浪子 提交于 2019-12-21 03:49:30

问题


I want to upload build with Custom keyboard extension on Itunes Connect But when I am going to upload it on Itunes Connect through Application loader its show me following error

ERROR ITMS-9000: "Invalid architecture: Apps that include an app extension and a framework must support arm64

I have added valid architecture to "Armv7",armv7s,arm64 in keyboard extension target and app target as well.but I am still facing same problem


回答1:


Please check your embedded frameworks, if any. I've faced the same issue and the reason was: While debugging app on device, Xcode builds frameworks for "current arch only". And then, even if you try to archive project, Xcode uses already built for only one(!) arch frameworks from debug-iphoneos folder.

So, I've solved this issue by setting flag "Build for current architecture only" to "No" in Build settings of framework targets, cleaning build folder (cmd option shift K), Archive.




回答2:


My problem was, that I had my iPhone 6 connected to Xcode so all swift frameworks did only build the arm64 version.

I disconnected my iPhone 6 and selected iOS Device as Destination.

After that the error disappeared.

Another thing you could to is to check if the created Archive is really for all required architectures.

You can check the the binary files in your Archive with the commandline command:

lipo -info YourBinary

The output should look something like that:

Architectures in the fat file: YourBinary are: armv7 arm64



回答3:


I ran into this issue in Xcode 6.1. I was able to resolve it by closing Xcode, deleting the Derived Data folder, rebuilding everything, then archiving again.

You do have to have "Build for current architecture only" set to "No" in your main target, and any included targets for the build configuration that you are currently archiving.




回答4:


Make sure you have your destination set to Generic iOS device for the framework.

You can do this by going to Product->Destination->Generic iOS device.

Otherwise it builds it specifically for that device and only its architecture.



来源:https://stackoverflow.com/questions/25935895/error-itms-9000-invalid-architecture-apps-that-include-an-app-extension-and-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!