CocoaPods pod update 报错"[!] Invalid `xxxx.podspec` file: undefined method ..." 修复
2018-01-24 20:29
836 查看
[!] Invalid xxxx.podspec file: undefined local variable or method ... [!] Invalid `xxxx.podspec` file: undefined method ... [!] Invalid `<pod_name>.podspec` file: undefined method ...
1.cocoapods版本导致
cocoapods官网cocoapods github发布页面
检查发现本地mac系统上cocoapods版本是最新的1.4.0(2018年1月24日)
//删除1.4.0包 sudo gem uninstall cocoapods -v 1.4.0 //然后安装指定版本的Cocoapods sudo gem install cocoapods -v 1.3.1 //检查版本 pod --version
然后重新拉代码,pod update
编译运行OK!
相关文章推荐
- "The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods i"解决方法
- [!] Invalid `Podfile` file: undefined local variable or method `use_frameworks' for #<Pod::Podfile:0
- [!] Invalid `Podfile` file: undefined method `inherit!' for #<Pod::Podfile:0x007fece49911e0>. Updati
- [!] Invalid `Podfile` file: undefined method `inherit!' for #<Pod::Podfile:0x007ff9942f0c70>. Updati
- 解决cocoapods diff: /../Podfile.lock: No such file or directory
- 使用Cocoapods创建私有podspec
- CocoaPods更新卡住,pod install、pod update 速度慢解决命令
- iOS开发---CocoaPods和Podfile使用
- CocoaPods pod install/pod update更新慢的问题
- CocoaPods详解之——pod install/update更新慢的问题
- 解决cocoapods diff: /../Podfile.lock: No such file or directory
- CocoaPods pod install/pod update更新慢的问题
- pod无法update解决办法(ruby 2.3.0 & cocoapods 0.39.0)
- CocoaPods pod install/pod update更新慢的问题
- CocoaPods pod install/pod update更新慢的问题
- CocoaPods pod install/pod update更新慢的问题
- 解决cocoapods diff: /../Podfile.lock: No such file or directory
- CocoaPods 的又一个小坑 required by `Podfile`
- CocoaPods pod install/pod update更新慢的问题
- CocoaPods pod install/pod update更新慢的问题