更新时间:2023-11-21 14:25:16
修复很简单,错误告诉该怎么办。将其添加到Podfile的顶部:
Fix is simple and the error tells what to do. Add this to the top of your Podfile:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
这是Github问题更多细节 - https://github.com/CocoaPods/CocoaPods/issues/2515
Here's the Github issue with more details - https://github.com/CocoaPods/CocoaPods/issues/2515
更新
确保在根目录中创建Podfile你的Xcode项目目录。以下是你的Podfile应该是什么样子 -
Make sure you create the Podfile in the root of your Xcode project directory. Here's what your Podfile should look like -
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
# Pods
pod 'RestKit', :head
pod 'RestKit/Testing', :head
pod 'CocoaLumberjack', :head
pod 'NLTHTTPStubServer', :head
pod 'Appsee', '~> 2.1'
pod 'google-plus-ios-sdk', '~> 1.7.0'
在您的终端 -
sudo gem update
sudo gem install cocoapods
sudo gem update
sudo gem install cocoapods
在你的项目目录中 -
In your project directory -
rm -rf Pods /
pod install
rm -rf Pods/
pod install