更新CocoaPods后找不到标题 [英] Headers are not found after updating CocoaPods

查看:147
本文介绍了更新CocoaPods后找不到标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天更新了CocoaPods( sudo gem install cocoapods )。执行 pod install 后,项目将不再编译。项目似乎找不到pod中的标题。

I updated CocoaPods today (sudo gem install cocoapods). After performing pod install the project won't compile anymore. It seems that headers from the pod are not longer found by the project.

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

Did something change in the recent cocoa pods version(s)?

以下是我的pod文件:

The following is my pod file:

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的顶部:

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

这篇关于更新CocoaPods后找不到标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆