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” 这个错误。具体步骤请看图:

Unable to run command 'StripNIB xx.nib' - this target might include its own product_第1张图片
D80D1565-0271-434F-AFC5-19E05A68EA57.png

执行 pod install 后

Unable to run command 'StripNIB xx.nib' - this target might include its own product_第2张图片
2FC87B39-6DC2-47F4-9C63-421CF4A699BE.png

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

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

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

Unable to run command 'StripNIB xx.nib' - this target might include its own product_第3张图片
12ECDB1E-0B7A-4826-B32C-AA9C53641690.png

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

Unable to run command 'StripNIB xx.nib' - this target might include its own product_第4张图片
5FFA9005-6C28-40E4-9020-FABD5E847F7D.png

再次,编译,即可通过。

你可能感兴趣的:(Unable to run command 'StripNIB xx.nib' - this target might include its own product)