cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting Started with V2

Getting Started with V2

AppleGG
Helpful | Level 6

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 12

Re: Getting Started with V2

Greg-DB
Dropboxer

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.)

Re: Getting Started with V2

AppleGG
Helpful | 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.

Re: Getting Started with V2

AppleGG
Helpful | Level 6

Now, it's saying "Library not loaded".

Re: Getting Started with V2

Greg-DB
Dropboxer
When/where does it give that error, and what installation method did you use?

Re: Getting Started with V2

AppleGG
Helpful | 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.

Re: Getting Started with V2

Greg-DB
Dropboxer

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".

Re: Getting Started with V2

AppleGG
Helpful | 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?

Re: Getting Started with V2

Greg-DB
Dropboxer
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.

Re: Getting Started with V2

AppleGG
Helpful | 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.

 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    AppleGG Helpful | Level 6
What do Dropbox user levels mean?
Need more support?