Should all these Cocoapod files be red after installation?

I just started a new project from scratch and tried to install Parse with Cocoapods for the first time. I am using Xcode 6.4 and Cocoapods 0.37.2.

I installed the standard Cocoapods with Terminal:

sudo gem install cocoapods
pod setup --verbose

cd ~/Documents/"Application Development"/VeilApp
pod init
open -a Xcode Podfile

      

In my subfile:

platform :ios, '8.0'
use_frameworks!

target 'VeilApp' do

pod 'Parse'
pod 'ParseUI'

end

target 'VeilAppTests' do

end

      

And again in the terminal:

pod install

      

I closed xcodeproj and opened the xcworkspace app version and then I came across this:

imgur.com/D272Tle

Basically, a bunch of red (not found? Incorrectly linked?) Cocoapod files. I tried to save something on Parse and it works. But then I tried to subclass PFQueryTableViewController and it couldn't find it. I'm not entirely sure where I went wrong, did I skip a step in installing Cocoapods? I am completely new to programming in general, so if someone can shed some light on what I am doing wrong it would be great if it was with steps :)

+3


source to share


1 answer


Short answer = yes

redFrameworks

and elements Products

pointing to derived data are normal. Red items in Pods


Troubleshooting

Have you tried the obvious:

  • Quit / Relaunch Xcode
  • Xcode> Window> Projects> Derived Data Delete ...
  • Correct import ParseUI

    in your Swift source code
  • Start over: rm -rf Podfile.lock Pods/ ; pod install

Assuming you got this after pod install

:



Downloading dependencies
Installing Bolts (1.2.0)
Installing Parse (1.7.5)
Installing ParseUI (1.1.4)
Generating Pods project
Integrating client project

      

... and you followed Cocoapod's advice (it is generally best to close the Xcode project before creating the workspace) ...

[!] From now on, use VeilApp.xcworkspace

.

... then this works:

Swift

import ParseUI

class MyQueryTableViewController : PFQueryTableViewController {
}

class AClass {
    func aFunction() {
        let pf:PFQueryTableViewController = MyQueryTableViewController(style: .Plain)
    }
}

      

+3


source







All Articles