XCode 11 build error 编译错误 image not found

问题描述

XCode 11,build app的时候,编译错误 image not found。

解决

[Xcode 11+]

Root Cause 在于framework的Embed选项要选择为 Embed & Sign。 路径如下:
Target -> General->Frameworks, Libraries And Embedded Content section.

确定有图片资源的framework选择 ‘Embed & Sign’, 默认的是 Do Not Embed .
XCode 11 build error 编译错误 image not found

[Xcode v6 -> Xcode v10]

Root Cause: 少加一些framework。
Target -> General->Frameworks, Libraries And Embedded Content section -> 增加 framework即可。
XCode 11 build error 编译错误 image not found

参考

https://stackoverflow.com/questions/24993752/os-x-framework-library-not-loaded-image-not-found