You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Mr_K
8 years agoExplorer | Level 3
Problems when migrating from API v1 to v2
When migrating my Objective C project for iOS from Dropbox API v1 to v2
I am changing my source code, replacing old
#import <DropboxSDK/DropboxSDK.h>
to new
#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>
But when compiling the project I get an error:
'ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h' file not found
Also in "Pods > Products" section in Xcode both "ObjectiveDropboxOfficial.framework" and "Pods_BASIC.framework" frameworks are marked in red color.
What settings are missing or what I am doing wrong?
Then I would recommend using Carthage, rather than CocoaPods, as it is less invasive. You can build the binaries with Carthage and then drage and drop them into each of your targets.
This approach will work better, I think.
- Greg-DBDropbox Staff
First, to confirm, it sounds like you're using the CocoaPods installation method, is that correct?
If so, can you share:
- your Podfile
- the version of CocoaPods you're using
- the version of Xcode you're using
Also, make sure you opened the .xcworkspace file and not the .xcodeproj file.
- Mr_KExplorer | Level 3
Yes, I am following your instructions to install Dropbox SDK using CocoaPods.
My Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '8.0'target 'BASIC' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!# Pods for BASIC
pod 'ObjectiveDropboxOfficial'end
#target 'SB' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!# Pods for SB
#end
Here pod init command created target 'SB' because my project has two targets: main 'BASIC' app target and 'SB' static library target (SB library uses Dropbox commands, BASIC app uses SB library). But I commented this target out because otherwise I get pod install error if 'SB' static library is present as a target.
CocoaPods version is 1.2.1
Xcode version is 8.3.3
- Greg-DBDropbox StaffWhat output did you get from 'pod install' for this Podfile?
Note that the Objective-C SDK supports iOS 9+, but you seem to be targeting iOS 8:
https://github.com/dropbox/dropbox-sdk-obj-c#system-requirements
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!