exportArchive: Found an unexpected Mach-O header code: 0x72613c21

问题解析:
接完quick SDK之后,然后公司要求把游戏在quick工具上打包iOS包出来,然后就一直遇到下面的问题:

2020-12-07 16:05:32.837 xcodebuild[5248:217460] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_1/cdrcfdg53q3cy0_rjkjsp87h0000gp/T/mir2-iOS_fgcq_2020-12-07_16-05-32.837.xcdistributionlogs'.
2020-12-07 16:05:34.207 xcodebuild[5248:217460] [MT] IDEDistribution: Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}
error: exportArchive: Found an unexpected Mach-O header code: 0x72613c21

Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}

** EXPORT FAILED **

解决方法:
原因是静态的framework添加到了Embed Frameworks里面了

解决办法:在 Build Phases里,将Embed Frameworks 中的framework移除,然后将其添加到Link Binary With Libraies 中,已经有的话就不用重复添加了。


image.png

把这里的静态库删掉之后,添加到Link Binary With Libraies ,已经有了就不用再添加就可以打包通过

image.png

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