用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再次,编译,即可通过。
网友评论