问题描述
我正在尝试使用Cocoapods 0.39.0作为我项目的依赖项。我已经按照步骤操作,但是在我的项目中最终得到了一个红色的Pods.framework。如果我看一下XCode 7.2.1所说的路径,它不存在:
I am trying to using Cocoapods 0.39.0 for the dependencies of my project. I have followed the steps, but I end up with a red Pods.framework in my project. If I look at the path where XCode 7.2.1 says it should be, it doesn't exist:
/ Users / ajmas / Library / Developer / Xcode / DerivedData / myproject-cskuurnzjrcpcxfoyaceaeepshgt / Build / Products / Debug / Pods.framework
/Users/ajmas/Library/Developer/Xcode/DerivedData/myproject-cskuurnzjrcpcxfoyaceaeepshgt/Build/Products/Debug/Pods.framework
我看过Stackoverflow中的其他条目,但找不到任何表明框架应该如何的东西
I have looked around at other entries in Stackoverflow, but I am not find anything indicating how the framework should be generated.
我的Podfile的内容为:
The contents of my Podfile are:
source 'https://github.com/CocoaPods/Specs.git'
target 'myproject' do
platform :osx, '10.11'
use_frameworks!
pod 'Alamofire', '~> 3.0'
end
有什么想法吗?
Edit,也尝试使用Cocoapods 1.0.0.beta,并且即使在更新Podfile确认现在已经将目标作为要求之后也没有更改。
Edit, also tried with Cocoapods 1.0.0.beta and no change, even after updating the Podfile to confirm to 'target' being a requirement now.
推荐答案
如果发生这种情况,最有可能是因为您使用的是< your_project> .xcproject
。当您运行 pod install
时,CocoaPods创建一个< your_project.xcworkspace
文件,您需要使用该文件通过以下方式安装依赖项编译时可以使用CocoaPods。
If this happens it's most likely because you are using <your_project>.xcproject
. When you run pod install
CocoaPods creates a <your_project.xcworkspace
file that you need to use to have dependencies installed via CocoaPods be available when compiling.
这篇关于红色的Pods.framework,在DerivedData中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!