【问题标题】:Getting errors when adding CocoaPods to an existing project将 CocoaPods 添加到现有项目时出现错误
【发布时间】:2015-01-31 14:27:29
【问题描述】:

我的项目“Shag iBeacon”包含框架:

Bolts.framework,
Parse.framework,
AudioToolbox.framework,
CFNetwork.framework,
MobileCoreServices.framework,
QuartzCor‌​e.framework,
Security.framework
StoreKit.framework,
SystemConfiguratinon.framework,
​Accounts.framework,
Social.framework,
AdSupport.framework,
CoreLocation.framework,
Co‌​reBluetooth.framework,
Foundation.framework,
CoreGraphics.framework and
UIKit.framework.

我将 CocoaPods 添加到这个现有项目中,并使用以下语句将解析库添加到项目中:pod 'Parse'。我打开了 Shag iBeacon.xcworkspace 并编译了项目但是我得到一个错误,因为

The file “Pods-Shag iBeacon-Bolts-Private.xcconfig” couldn’t be opened because there is no such file. 

(我已附上我的 projet navigator 的 2 个屏幕截图)

有人可以解释一下如何解决这个问题吗?提前谢谢...

【问题讨论】:

  • 你跑pod install了吗?我们可以看到 pod 文件吗?
  • 是的,已经运行 pod install ...
  • POD FILE - # 取消注释此行以为您的项目定义一个全局平台 # platform :ios, '7.0' source 'github.com/CocoaPods/Specs.git' inhibitor_all_warnings!目标 'Shag iBeacon' 做 pod 'Parse' 结束目标 'Shag iBeaconTests' 做结束
  • 检查这些参考资料link1link2

标签: ios objective-c cocoapods


【解决方案1】:

我的经验是在一个 Ionic 项目上(因此它可能与你的有点不同)。我安装了最新版本,看来 ios 项目现在有一些独特的要求。谷歌搜索导致我首先升级 cocoapods,然后切换到 iOS 平台目录(具有项目定义文件的目录)并运行 pod install。

我不知道你会在 XCode 上做什么,但如果你只是运行 pod install (在确保你安装了最新的 cocoapods 之后,即 gem install cocoapods) 你应该没事。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多