Forum Discussion

AB32w2e332e's avatar
AB32w2e332e
Helpful | Level 5
9 years ago

DBError, forward declaration

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)

  • EvilOneX's avatar
    EvilOneX
    Explorer | Level 3
    i need to get in so i can have games on my i pod
    • AB32w2e332e's avatar
      AB32w2e332e
      Helpful | Level 5

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

    • Robert S.138's avatar
      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?