且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新CocoaPods后找不到标题

更新时间: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'

在您的终端 -


  • 更新RubyGems - sudo gem update

  • 更新Cocoa Pods - sudo gem install cocoapods

  • Update RubyGems - sudo gem update
  • Update Cocoa Pods - sudo gem install cocoapods

在你的项目目录中 -

In your project directory -


  • 删除pods - rm -rf Pods /

  • 安装pods - pod install

  • Remove pods - rm -rf Pods/
  • Install pods - pod install