Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 522
Andre M Avatar asked Mar 01 '16 19:03

Andre M


People also ask

Why are frameworks red in Xcode?

The red text indicates that the actual files are not at the path that the project has for them. Get info on the framework and look under the General tab. The first section shows the name and path of the framework bundle itself.


1 Answers

Build your project with "Generic iOS Device" selected.

like image 104
konsti Avatar answered Oct 09 '22 21:10

konsti