cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to make sure we keep you updated on the ideas that other users have shared here on the Community? Us too! Check them out over 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
Comments

DropboxClientsManager authorizeFromController not doing anything

Re: DropboxClientsManager authorizeFromController not doing anything

Greg-DB
Dropboxer

This project does not fire the assert for me. It does print:

 

yah 0
yah 0

What's different in this project? Did you change a project setting or is it something in the code?

 

Re: DropboxClientsManager authorizeFromController not doing anything

Bob S.15
Collaborator | Level 8

Hey Greg,

 

   As far as I know, there is nothing different about the project.  I just added the print statements to print out the value of sharedOAuthManager.  That's the standalone project you linked to earlier in this thread.

 

Bob

Re: DropboxClientsManager authorizeFromController not doing anything

Greg-DB
Dropboxer
Interesting. In that case I'll dig into it further now that I can reproduce it. Thanks!

Re: DropboxClientsManager authorizeFromController not doing anything

Greg-DB
Dropboxer
Ok, I determined what the issue is here. Whether or not the assert occurred depended on the ENABLE_NS_ASSERTIONS build setting. By default, that build setting varies depending on which scheme you're building for. (It's Debug:Yes, Release:No.)

When using Cocoapods (as I often do when testing things) the scheme used for the Dropbox library is whatever scheme you're building your project with. While developing an app, that's typically the Debug scheme.

When using Carthage however, the Dropbox library is built when you run `carthage`, which by default uses the Release scheme. (This is configurable using Carthage's `--build` setting.)

These differences are what caused the inconsistency when trying to reproduce this across projects (since it depended on the setting/scheme/installation method.)

We're going to change this assert into a log statement so that it will happen irrespective of these conditions.

Thanks for your help and patience tracking this down!

Re: DropboxClientsManager authorizeFromController not doing anything

Bob S.15
Collaborator | Level 8

Ah, that makes sense.  Thanks for helping me find the problem in my app!

Bob

 

Re: DropboxClientsManager authorizeFromController not doing anything

srinivas1995
Explorer | Level 3

I'm also Getting same issue.Help to me

Re: DropboxClientsManager authorizeFromController not doing anything

Greg-DB
Dropboxer

@srinivas1995 Please open a new thread with the specifics of the issue you're seeing so we can take a look. Thanks!

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    srinivas1995 Explorer | Level 3
  • User avatar
    Bob S.15 Collaborator | Level 8
What do Dropbox user levels mean?
Need more support?