且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误 ITMS-9000:“架构无效:包含应用程序扩展和框架的应用程序必须支持 arm64

更新时间:2022-11-05 15:32:05

我的问题是,我的 iPhone 6 连接到 Xcode,所以所有 swift 框架都只构建了 arm64 版本.

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

我断开了 iPhone 6 的连接并选择了 iOS 设备作为目标.

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

之后错误消失了.

您可以做的另一件事是检查创建的存档是否真的适用于所有必需的架构.

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

输出应该是这样的:

Architectures in the fat file: YourBinary are: armv7 arm64