Forum Discussion

Mark R.5's avatar
Mark R.5
Helpful | Level 5
8 years ago

Dropbox V2 Obj-C Installation Query

I followed the instructions on github to 'Manually add subproject' into Xcode with the help of Carthage. This all appears to work fine, but I am confused as to where it is picking the Dropbox framework up from.

 

When a build is done of my app, this seems to build the Dropbox framework as well. However when performing the 'carthage update --platform iOS' command, this also builds the Dropbox framework into the 'Carthage\Build\iOS' folder.

 

To add to the confusion, the 'Linked Frameworks and Libraries' section of the General settings has a reference to the version of the Dropbox framework which is built with the app, whereas the 'Framework Search Paths' build setting is pointing to the 'Carthage\Build\iOS' folder.

 

So my question is, which version of the Dropbox framework should it be putting into my app. The one in the 'Carthage\Build\iOS' folder, or the one which gets built when my app is built?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    If you're using the 'Manually add subproject' installation method, the Dropbox framework does get built both when running carthage, as well as when you build in Xcode. I believe these should both be building to the same Carthage\Build\iOS location though.

    This is a bit redundant, but it helps to ensure you have a working copy of the Dropbox library when initially checking it out via carthage.
    • Mark R.5's avatar
      Mark R.5
      Helpful | Level 5

      Hi Greg. That is not actually the case. The subproject builds the framework to a folder called something like:

       

      /Users/{Name}/Library/Developer/Xcode/DerivedData/App-emiqpeodictxkuhelynkbahkugza/Build/Products/Debug-iphoneos

       

      This is the one that seems to be in the 'Linked Frameworks and Libraries' area. 

      • Stephen C.14's avatar
        Stephen C.14
        Icon for Dropbox Staff rankDropbox Staff

        Sorry for the confusion here. You should not be using the one that Carthage builds, but instead the one that is built by your subproject (I think it's the only one you'll have access to when you do the following steps):

         

        In the Project Navigator in Xcode, select your project, and then navigate to your project's build target > General > Embedded Binaries > + and then add the ObjectiveDropboxOfficial.framework file for the macOS platform.

         

        (read more in the SDK docs here)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,946 PostsLatest Activity: 3 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!