We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pstoppani
9 years agoHelpful | Level 5
Objective-C V2: downloadData and downloadUrl not working
I've got upload and listFolder working fine but just can't seem to get download to work. If I use downloadData, it succeeds but the fileContents NSData is 'nil'! Code: [[[[self client].fi...
- 9 years agoAh, Podfile specified iOS plath '8.0' instead of '9.0'. That fixed the problem!
Thanks much :)
Greg-DB
Dropbox Community Moderator
9 years agoHi Pete, I just tried your code (commenting out the 'Common', etc. lines) and it worked correctly for me. I.e., fileContents wasn't nil.
What version of the SDK do you have installed? There was a bug like this in an older version. If you don't have the latest version, currently 3.3.2, please update to that and let me know if you're still seeing this issue. Thanks!
What version of the SDK do you have installed? There was a bug like this in an older version. If you don't have the latest version, currently 3.3.2, please update to that and let me know if you're still seeing this issue. Thanks!
- pstoppani9 years agoHelpful | Level 5
Hmm, 'pod' shows 'Using ObjectiveDropboxOfficial (3.0.15)'. Now the question is why pod doesn't update to the latest?
- Greg-DB9 years ago
Dropbox Community Moderator
You'll need to run `pod update` to update your pods. Also make sure your Podfile looks like the example (and isn't locked to a specific version) in order to make sure `pod update` will give you the latest version:
https://github.com/dropbox/dropbox-sdk-obj-c#cocoapods- pstoppani9 years agoHelpful | Level 5Ah, Podfile specified iOS plath '8.0' instead of '9.0'. That fixed the problem!
Thanks much :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!