You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Samnis
5 years agoExplorer | Level 4
Objective-C SDK crash
Hi,
in my project I am using the Objective-C SDK: I am updating the app to use scopes and short lived tokens. I added the SDK to the project by manually copying all the classes.
I am getting ...
Greg-DB
Dropbox Staff
Thanks for the report! To make sure I can reproduce the exact issue you're seeing, can you share the code snippet you're running that triggers this, and indicate on which line in particular it happens?
Also, you mentioned you installed the SDK "by manually copying all the classes". Are you referring to the "Manually add subproject" installation method? If not, the SDK may not be installed correctly. We only officially support the installation methods listed here. If you're not using one of those, please switch to one of them.
And, you mentioned you're using commit 500. We recommend only installing a particular release version though, not a particular commit version, e.g., from master. The latest release version is v5.0.4. Please try installing v5.0.4 via an officially supported installation method and let me know if the issue issue still occurs.
Samnis
5 years agoExplorer | Level 4
Hi Greg,
thank you for your answer. Yes, I installed the latest release (version v5.0.4). I installed it manually by following the steps of the pod file, so it shouldn't be an installation problem. Infact, as said with the previous message, the crash only occurs just after my app is called back after the authorization flow. If I run again the app there are no crashes and the app is correctly linked to Dropbox.
The exact line that triggers the crash is the line 43 of the class DBTransportBaseClient : this is the first line in which the parameter "transportConfig" is used, and the crash occurs because at runtime the parameter is of a different class, not the "DBTransportBaseConfig" one, and so it crashes because the instance doesn't have an "appKey" method.
Hope this helps.
Mario
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
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!