Unable to run command 'StripNIB xx.nib' - this target might include its own product

用pod导入自己创建的私有库时,如果没有添加 use_frameworks ,在编译的时候就会报 “Unable to run command 'StripNIB xx.nib' - this target might include its own product” 这个错误。具体步骤请看图:

D80D1565-0271-434F-AFC5-19E05A68EA57.png

执行 pod install 后

2FC87B39-6DC2-47F4-9C63-421CF4A699BE.png

此时 command + B 编译程序,会报错误:

0CE4DE2B-2AE7-4986-8398-C551738EBBC9.png

此时,只需要在 podfile 文件中添加 use_frameworks!即可

12ECDB1E-0B7A-4826-B32C-AA9C53641690.png

添加完后,执行 pod install ,回到 Build Phases 中,

5FFA9005-6C28-40E4-9020-FABD5E847F7D.png

再次,编译,即可通过。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容