美文网首页
iOS开发报错:Found an unexpected Mach

iOS开发报错:Found an unexpected Mach

作者: 俺不是大佬儿 | 来源:发表于2023-10-15 16:27 被阅读0次

今天用cocoapods新增了个第三方库
模拟器运行时报错:Found an unexpected Mach-O header code: 0x72613c21

错误截图

解决方法:在TARGETS → Build Settings 下搜索Mach 找到 Mach-O Type 将 Static Library修改成Executable重新跑就可以了

如图所示修改

原因:添加了一个外部静态库,需要设置为Executable

相关文章

网友评论

      本文标题:iOS开发报错:Found an unexpected Mach

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