iOS開發cocoaPod報錯及疑難雜症

(1)無法引用pod文件


(2)在Pod 私有庫中存在mrc的類如何正確配置
s.requires_arc = false
s.requires_arc = ['ELDiagnosis/Classes/ARC/*/.m']

(3)編譯器model屬性報警告, 取值時異常


在子類中顯示的聲明一個@synthesize name = _name;

cocoaPod報錯:
(1):[!] CocoaPods was not able to update the komect-zdyy-cmhispec repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
沒有連接內網vpn
(2)[!] The 'Pods-UniAppCommon_Example' target has frameworks with conflicting names: littlecim.framework.
換環境爲遠程
(3)如果更新完pod裏的文件引用不了, pod install一下文件
(4)


解決:該問題是標籤重複提交導致的,可以在提交的時候,不勾“選提交所有標籤”的選項

運行報錯
證書問題
(1)證書不對



配置證書即可


(2)證書設置不對



需要去Build Settings->Code Siging Identity裏設置路徑


(3)下面錯誤



重啓手機或者關閉下面選項


(4)打包提示下面錯誤
:-1: Cycle inside XXX; building could produce unreliable results.


在左上角File->Project Setting 配置如下選項
image.png](https://upload-images.jianshu.io/upload_images/13069754-d381791b900658e6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章