- Xcode打包Found an unexpected Mach-
- Found an unexpected Mach-O heade
- ios开发 - Found an unexpected Mach
- iOS xcode 打包 Found an unexpected
- Xcode打包iPA出错(Found an unexpected
- Xcode打包报错Found an unexpected Mac
- IOS打包出现 Found an unexpected Mach
- iOS 0x72613c21 Xcode打包问题
- Found an unexpected Mach-O heade
- Found an unexpected Mach-O heade
正确的做法是:
从Embedded Binaries移除那个framework
不勾选Embedded即可
![](https://img.haomeiwen.com/i14363383/d3ae8baa15cc487a.png)
把这个framework添加在Link Frameworks and Libraries里面
默认添加framework后运行项目会直接崩溃,报错如下:
dyld:Librarynotloaded: @rpath/AppKit.framework/AppKit Referencedfrom: /var/containers/Bundle/Application/2E6B9570-C294-4C73-9C6A-0D1C06DC534D/test.app/test Reason: imagenotfound(lldb)
![](https://img.haomeiwen.com/i14363383/1e4cbc01b23bc62d.png)
这时候,AppKit默认会添加到linked frameworks and libraries中,没用过的人很难察觉到问题在哪,这时候就体现出老司机的重要性了,在General中往下翻会看到embedded binaries,点击+添加这个Appkit到里面,这时候你会看到linked frameworks and libraries中有两个Appkit,删除一个,运行后就不会再崩溃了。
网友评论