ios – 更新CocoaPods后找不到标题

ios – 更新CocoaPods后找不到标题,第1张

概述我今天更新了 CocoaPods(sudo gem install cocoapods).执行pod安装后,项目将不再编译.项目似乎找不到pod中的标题. 最近的可可豆荚版本有什么变化吗? 以下是我的pod文件: source 'https://github.com/artsy/Specs.git'source 'https://github.com/CocoaPods/Specs.git' 我今天更新了 CocoaPods(sudo gem install cocoapods).执行pod安装后,项目将不再编译.项目似乎找不到pod中的标题.

最近的可可豆荚版本有什么变化吗?

以下是我的pod文件:

source 'https://github.com/artsy/Specs.git'source 'https://github.com/CocoaPods/Specs.git'platform :ios,'7.0'inhibit_all_warnings!pod 'CocoaLumberjack'pod 'RestKit','~> 0.20.0'pod 'RestKit/Testing'pod 'NLThttpStubServer'pod 'Appsee'pod 'Google-plus-ios-sdk','1.7.0'
解决方法 修复很简单,错误告诉我该怎么做.将其添加到Podfile的顶部:

source 'https://github.com/artsy/Specs.git'source 'https://github.com/CocoaPods/Specs.git'

这是Github问题的更多细节 – https://github.com/CocoaPods/CocoaPods/issues/2515

更新

确保在Xcode项目目录的根目录中创建Podfile.这是你的Podfile应该是什么样子 –

source 'https://github.com/artsy/Specs.git'source 'https://github.com/CocoaPods/Specs.git'platform :ios,'7.0'inhibit_all_warnings!# Podspod 'RestKit',:headpod 'RestKit/Testing',:headpod 'CocoaLumberjack',:headpod 'NLThttpStubServer',:headpod 'Appsee','~> 2.1'pod 'Google-plus-ios-sdk','~> 1.7.0'

在你的终端 –

>更新RubyGems – sudo gem update
>更新Cocoa Pods – sudo gem install cocoapods

在您的项目目录中 –

>删除pods – rm -rf Pods />安装pod – pod install

总结

以上是内存溢出为你收集整理的ios – 更新CocoaPods后找不到标题全部内容,希望文章能够帮你解决ios – 更新CocoaPods后找不到标题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1043130.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存