问题
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
I have looked around at other entries in Stackoverflow, but I am not find anything indicating how the framework should be generated.
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
Any ideas?
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.
回答1:
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.
回答2:
Build your project with "Generic iOS Device" selected.
来源:https://stackoverflow.com/questions/35731416/pods-framework-in-red-doesnt-exist-in-deriveddata