MAC M1上Xcode 12.2打包报错 “IPA processing failed”

新款M1打包时报错

Assertion failed: Expected 2 archs in otool output:
/var/folders/kd/kb03k1ks33sb33gnl9fz95yr0000gn/T/IDEDistributionOptionThinning.~~~qlv6NP/Payload/xxx.app/xxx:
Mach header
      magic  cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64    ARM64        ALL  0x00     EXECUTE    47       5672   NOUNDEFS DYLDLINK TWOLEVEL BINDS_TO_WEAK PIE
Load command 0
      cmd LC_SEGMENT_64

解决方案:
1、Xcode –>Build Settings –>iOS Deployment Target–>iOS 13.0 or later
2、
~Press Window > Organizer
~Right-click on your app > Show in Finder
~Right-click on first .xcarchive file > Show package contents
~Right-click on /Products/Applications > Show package contents
~Remove all lib*.dylib
~Re-distribute app

利用低版本的Xcode版本打包,可能会支持iOS9.0以上版本,有待验证...

你可能感兴趣的:(MAC M1上Xcode 12.2打包报错 “IPA processing failed”)