Forum Discussion

Ernest T.'s avatar
Ernest T.
Explorer | Level 3
8 years ago
Solved

iOS downloadData returns nil for fileContents

iOS / objective C / cocoapods

With api version 3.0.5, everything works file

With api version 3.0.15, I'm not able to download a file using client.fileRoutes downloadData ....

 

No Error (both error vars are nil)

DBFILESFileMetadata returns valid metadata (I can see correct timestamp of file)

 

But...

fileContents is nil *** (should contain data)

 

Again, it works fine on older api version but if I update using cocoapods, I get this problem.

Is this something anyone has heard of before?

 

Thanks,

Ernie

 

  • Hi Ernie, there have been some bug fixes in recent versions. Can you install the latest version, currently v3.3.4, and let us know if it doesn't help? Thanks in advance!
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Hi Ernie, there have been some bug fixes in recent versions. Can you install the latest version, currently v3.3.4, and let us know if it doesn't help? Thanks in advance!
    • Ernest T.'s avatar
      Ernest T.
      Explorer | Level 3

      Ah, I see the issue now.  I was using a platform of ios 8.0, and the newer versions require 9.0, so the newest version didn't actually install.

       

      I want to keep supporting 8.0 so I'll continue using your older version for the time being, but at least I know what's going on now.

       

      Thanks for the help!

      Ernie

    • thoainguyen's avatar
      thoainguyen
      New member | Level 2

      I had the same issues. But it haven't resolved yet although I installed the latest version 3.3.4.

    • thoainguyen's avatar
      thoainguyen
      New member | Level 2

      Okay resolved. Because cocoapod doc said "if the version is not declared cocoapod will automatically install the latest version". But actually when I checked my podfile.lock I found out that my current version of ObjectiveDropboxOffical is 3.0.15. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 9 hours ago
351 Following

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!