Pods.framework in red, doesn't exist in DerivedData

给你一囗甜甜゛ 提交于 2019-12-10 10:27:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!