Found an unexpected Mach-O header code: 0x72613c21

Xcode打包点击Upload to App Store的时候报错

Found an unexpected Mach-O header code: 0x72613c21

点击show logs以后发现提示说

did not contain a "archived-expanded-entitlements.xcent" resource

解决方法:
我用了一个xxx.framework 而这个framework是一个static的library
我把他添加在Embedded Binaries里面了。
正确的做法是:
从Embedded Binaries移除那个framework
把这个framework添加在Link Frameworks and Libraries里面

你可能感兴趣的:(Found an unexpected Mach-O header code: 0x72613c21)