Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Daniel T.42's avatar
Daniel T.42
New member | Level 1
10 years ago

Anyone have a way to use Dropbox with ios9 and watch app?

Unable to build an archive because of the enable bitcode=yes. If I can't find a solution I am going to have to remove Dropbox. This is an iOS app built with objective-c. 

8 Replies

Replies have been turned off for this discussion
  • Daniel T.42's avatar
    Daniel T.42
    New member | Level 1
    10 years ago

    Unfortunately that thread does not provide any information on how to add the source directly to the app. I tried adding it in, but I using info from that thread earlier today before posting, unfortunately I still get the same error. Does anyone have any instructions on how to add directly to the source. I have an update that needs to go be submitted this week and unfortunately will have to drop Dropbox from the app if I cannot figure out a solution to this. Any help would be greatly appreciated.

    FYI - if you turn bitcode=no it breaks the integration between the watch app and that is not an option. 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    I imagine it may depend a bit on how the project is set up, but as I recall the steps I've used in the past are:

    1. Remove DropboxSDK.framework from your project but right clicking it and choosing "Delete", and choose to delete files.
    2. If you're not building for OS X, delete all of the files that reference "Mac" or "OS X" from the DropboxSDK folder in the unzipped SDK download. (Be sure to check subfolders too.)
    3. Drag and drop the DropboxSDK folder into your project and follow the prompt, choosing to copy and create groups.
    4. If your project uses ARC, disable ARC for the Dropbox SDK files using the -fno-objc-arc compiler flag in Build Phases -> Compile Sources.
    5. Clean and rebuild.

  • Daniel T.42's avatar
    Daniel T.42
    New member | Level 1
    10 years ago

    Gregory, 

    Thank you, I am noticing some of the files are not needed because they are OS X. Do you happen to have a list of what files are needed for iOS as there are almost 150 files in the source?

    Daniel

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Searching for "Mac" or "OSX" in Finder yields:

    DBAuthHelperOSX.h
    DBAuthHelperOSX.m
    DBKeychain-OSX.m
    DBRestClient+OSX.h
    DBRestClient+OSX.m
    DropboxOSX-Info.plist
    DropboxOSX-Prefix.pch
    DropboxOSX.h
    MPOAuthCredentiaIConcreteStore+KeychainAdditionsMac.m

    So I'd recommend just removing those instead of trying to add just iOS files.

  • Daniel T.42's avatar
    Daniel T.42
    New member | Level 1
    9 years ago

    Gregory, Fantastic. I have been holding off on an update because of this issue as I was not able to get Dropbox to work with the previous option and I have many customers that enjoy using the feature. I will let you know if this resolves my issue. 

  • Daniel T.42's avatar
    Daniel T.42
    New member | Level 1
    9 years ago

    Initial tests are good, I will continue to do additional testing throughout this week before publishing. So far testing has been done in simulators with the updated SDK. I will test on actual devices this week as well and update soon if I find any issues. Thank you again!!!

About Dropbox API Support & Feedback

Node avatar for 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!