用pod導(dǎo)入自己創(chuàng)建的私有庫(kù)時(shí)的止,如果沒有添加 use_frameworks 脏款,在編譯的時(shí)候就會(huì)報(bào) “Unable to run command 'StripNIB xx.nib' - this target might include its own product” 這個(gè)錯(cuò)誤辐宾。具體步驟請(qǐng)看圖:
D80D1565-0271-434F-AFC5-19E05A68EA57.png
執(zhí)行 pod install 后
2FC87B39-6DC2-47F4-9C63-421CF4A699BE.png
此時(shí) command + B 編譯程序买猖,會(huì)報(bào)錯(cuò)誤:
0CE4DE2B-2AE7-4986-8398-C551738EBBC9.png
此時(shí),只需要在 podfile 文件中添加 use_frameworks破花!即可
12ECDB1E-0B7A-4826-B32C-AA9C53641690.png
添加完后谦趣,執(zhí)行 pod install 疲吸,回到 Build Phases 中,
5FFA9005-6C28-40E4-9020-FABD5E847F7D.png
再次前鹅,編譯摘悴,即可通過。