模拟器编译及打包上传奇怪问题

1、模拟器编译
building for iOS Simulator, but linking in object file built for iOS,……or architecture arm64
2、打包上传
ERROR ITMS-90086: "Missing 64-bit support. iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK or later. We recommend using the default "Standard Architectures" build setting for "Architectures" in Xcode, to build a single binary with both 32-bit and 64-bit support."

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

解决办法
出现问题原因是升级Xcode12之后 苹果废除了 32位应用

在模拟器Release模式

TARGETS-->Build Settings--> Architectures
Excluded Architectures 加上的 arm64
Build Active Architecture Only 设置为 No

模拟器Debug模式,真机调试,打包上架

TARGETS-->Build Settings--> Architectures
Excluded Architectures 中 arm64 删掉
Build Active Architecture Only 设置 Yes。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容