- IOS打包出现 Found an unexpected Mach
- ios开发 - Found an unexpected Mach
- Found an unexpected Mach-O heade
- react-native 集成了友盟分享后打包上架报错:Foun
- Found an unexpected Mach-O heade
- iOS开发-解决Found an unexpected Mach
- iOS打包出现 Found an unexpected Mach
- iOS 打包 "Found an unexpected Mach
- Found an unexpected Mach-O heade
- IOS开发偏门小问题记录
今天用cocoapods新增了个第三方库
模拟器运行时报错:Found an unexpected Mach-O header code: 0x72613c21
![](https://img.haomeiwen.com/i11280143/9e70127a0f73ea0d.png)
解决方法:在TARGETS → Build Settings 下搜索Mach
找到 Mach-O Type
将 Static Library修改成Executable
重新跑就可以了
![](https://img.haomeiwen.com/i11280143/ba57d9ce15b107ad.png)
原因:添加了一个外部静态库,需要设置为Executable
网友评论