美文网首页
MAC M1上Xcode 12.2打包报错 “IPA proce

MAC M1上Xcode 12.2打包报错 “IPA proce

作者: Mr_Dreams | 来源:发表于2021-05-10 20:31 被阅读0次

    新款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 proce

          本文链接:https://www.haomeiwen.com/subject/bbxwdltx.html