CocoaPods not importing SDK frameworks properly

Rameez Hussain picture Rameez Hussain · Dec 6, 2013 · Viewed 12.7k times · Source

I have been trying to import the Dropbox-iOS-SDK into my project through CocoaPods, but the framework file doesn't seem to be imported properly. My Podfile looks like this:

platform :ios, '7.0'

pod "AFNetworking", "~> 2.0"
pod 'Reachability'
pod 'Facebook-iOS-SDK', '~> 3.9'
pod "Dropbox-iOS-SDK"

I am new to CocoaPods and I'm not sure where I am going wrong. I tried cleaning the project and restarting Xcode. But the Pods Frameworks file still looks like this:

enter image description here

As a result of this I am getting the following errors during build:

enter image description here

Any idea how I can fix this?

Answer

Rameez Hussain picture Rameez Hussain · Dec 8, 2013

I was adding cocoa pods to an existing project and so I had to remove references to all paths to previously imported frameworks and headers. Once I removed these, everything worked fine.

This is in case someone runs into the same problem.