We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
AppleGG
9 years agoHelpful | Level 6
Getting Started with V2
I currently have v1 in my iOS apps. I can't even get started with V2. How do I get your Roulette sample to compile? I compiled the framework and included it in the Roulette "Include" sample and get nothing but complaints about ARC errors.
12 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
It sounds like you're referring to the DBRoulette sample for the Official Objective-C SDK for the Dropbox API v2. There are three copies of the example project, one for each supported method of installation. To get started, you should pick the one for the installation method you prefer, and then follow the installation instructions to install the library, just as you would in your own app.
Note that there's a known issue in that DBRoulette hasn't be updated for a change in version 2.0.6 of the SDK, so you may want to either use 2.0.5 for now, or change the instances of "DBError" to "DBRequestError".
If you're still having trouble, please share the errors you're getting. (Screenshots may also be helpful.)
- AppleGG9 years agoHelpful | Level 6
Replaced DBError with DBRequestError in DBRoulette. At least it now compiles and I just get a SIGABRT, maybe because of no keys set yet.
- AppleGG9 years agoHelpful | Level 6
Now, it's saying "Library not loaded".
- Greg-DB9 years ago
Dropbox Community Moderator
When/where does it give that error, and what installation method did you use? - AppleGG9 years agoHelpful | Level 6
Console message:
dyld: Library not loaded: @rpath/ObjectiveDropboxOfficial.framework/ObjectiveDropboxOfficial
Referenced from: /Users/gordonapple/Library/Developer/CoreSimulator/Devices/F22A6687-1ED7-424E-A945-959DCC49CB5F/data/Containers/Bundle/Application/70C139CE-9AB2-4B6A-A484-518D04864D82/DBRoulette.app/DBRoulette
Reason: image not found
(lldb)
I simply dragged the framework into the project folder, then into the XCode project for DBRoulette.
- Greg-DB9 years ago
Dropbox Community Moderator
Which of the three supported installation methods are you trying to use exactly? It sounds like you want to use the "manually add subproject" method. If so, make sure you follow all of those steps. For example, make sure you add it to "Embedded Binaries".
- AppleGG9 years agoHelpful | Level 6
I don't use CocoPods, Carthage, repositories, or homebrew. Is there some readon DropBox can't just provide an iOS framework to put in our project and go from there?
- Greg-DB9 years ago
Dropbox Community Moderator
We recommend using a package control system, as it helps developers stay up to date with updates of the SDK. I'll send this along as a feature request for support for installing from a framework file though. - AppleGG9 years agoHelpful | Level 6
Ok, you can add including some sample code that shows how to do the in-app authentication. The less I have to know about this, the better. (My background is Communications Systems Engineering.)
We have our base class for handling standard drill-down file access for files in a number of different services. Obviously, we will have to rewrite the subclass that is currently uses the Dropboc v1 Rest interface.
- Greg-DB9 years ago
Dropbox Community Moderator
The authorization flow is documented here:
https://github.com/dropbox/dropbox-sdk-obj-c#handling-the-authorization-flow
And implemented in the sample app here:
https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Examples/DBRoulette/CocoaPods/DBRoulette/DBRoulette/ViewController.m#L24
Does that cover what you need?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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!