700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > xcode8 cocoapods 执行 pod spec lint 报错

xcode8 cocoapods 执行 pod spec lint 报错

时间:2022-10-23 15:18:18

相关推荐

xcode8 cocoapods 执行 pod spec lint 报错

这个问题坑了一天多,一直报错:

xcodebuild 无法运行,找不到app.xcworkspace,而且还有

后来不停的翻阅资料,重装cocoapods,到最后才知道,貌似是因为更新完Xcode8以后Xcode路径更改了,Xcodebuild找不到路径 无法执行:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

执行上面的命令,完成再次执行 pod spec lint --verbose 命令 完美不再报错上面的内容,但是新的问题来了:

报错: Encountered an unknown error (Simulator iPhone 4s is not available.) during validation.Simulator 4s 不可用 很纠结啊,Xcode8貌似就没有4s.....

stackoverflow 上面解决问题的方案是直接下载9.3的模拟器。。。。。。1.5g 不知道怎么样 待测试

最后模拟器下载完了 但是还是不行,最总没有办法 我还是升级cocoapods 1.1.0.rc.2最新版本的 :

sudo gem install -n /usr/local/bin cocoapods --pre

再次执行就不报之前的错误了:

我这边目前有些相互依赖库的问题,调试完成之后继续更新这篇文章,之前有所错误引导,请查阅者谅解,谢谢~!

持续跟进这个问题:在我重启电脑 进入我的podspec文件的目录的时候 执行 git tag 命令:

not present in DVTPlugInCompatibilityUUIDs

出现上述的错误,查阅资料 找到解决方法:

defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

读取新的uuid 然后写入:

defaults write MyPlugin.xcplugin/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $UUID

完成uuid的重新写入

因为过多次的校验,需要清楚cocoapods缓存 :

pod cache list

查看 缓存列表 :

pod cache clean AFNetworking

这里就拿AFNetworking做例子

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。