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)

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