cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right 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: 
1
Ask
2
Reply and help

DBError, forward declaration

DBError, forward declaration

BogdanG
Explorer | Level 3

Hello, I'm trying to compile DBRoulette example in iOS SDK v2.0.6 and I get a forward declaration error:

.../DBRoulette/PhotoViewController.m:53:65: Receiver type 'DBError' for instance message is a forward declaration

 

I've searched throught the SDK but I couldn't find the interface for this class, am I missing anything?

(I'm using Carthage to download the SDK from github, if it matters)

6 Replies 6

Re: DBError, forward declaration

EvilOneX
Explorer | Level 3
i need to get in so i can have games on my i pod

Re: DBError, forward declaration

Greg-DB
Dropboxer
Thanks for the report! We're looking into it.

Re: DBError, forward declaration

BogdanG
Explorer | Level 3

However, I successfully integrated the objc sdk v2 into my project and it runs just fine.

Re: DBError, forward declaration

Robert S.138
Helpful | Level 7
I also got that error, but it turned out that all my uses of DBError in SDK 1.0.11 were actually DBRequestError in SDK 2.0.6. When I changed all my declarations from DBError to DBRequestError, everything compiled fine. Is that the right thing to do?

I was using DBError to do things like isInternalServerError, isBadInputError, isAuthError, etc. Are there any situations where this substitution is not appropriate?

Re: DBError, forward declaration

Greg-DB
Dropboxer
Thanks Robert. That's the right change. DBError was renamed to DBRequestError in 2.0.0:

https://github.com/dropbox/dropbox-sdk-obj-c/releases/tag/2.0.0

Re: DBError, forward declaration

Greg-DB
Dropboxer
For reference, the sample app has been updated to work with the latest version of the SDK.
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Robert S.138 Helpful | Level 7
  • User avatar
    BogdanG Explorer | Level 3
What do Dropbox user levels mean?
Need more support?