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:
As a result of this I am getting the following errors during build:
Any idea how I can fix this?
By default, CocoaPods (no mention of use_frameworks! ) will build and link all the dependencies as static libraries. If we add use_frameworks! to our Podfile, CP will instead build and link the dependencies as dynamic frameworks.
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.
Same response as Rameez with more precision : As I had previously added libraries without Cocoapod, my project settings were not clean. When running pod install, the "Framework search path" and "header search path" were not set correctly.
To get the correct value for those two search path :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With