Forum Discussion

Jonas B.6's avatar
Jonas B.6
New member | Level 1
10 years ago

How to install SwiftyDropbox in xcode project

I have tried using cocoa pods, with no luck. i have tried everything. i have cloned the drive, i have downloaded it from github. i have tried creating a new project and copying the files in. Every time i seem to either miss out on the .xcodeproj file completely or miss the idk in the project. 

I am trying to create a "simple" (i thought) app that displays, uploads and downloads files from a users dropbox. and thought the SwiftyDropbox combined with chooser and saver was the way to go.

I am apparently not capable of getting any of them to work properly.

Please help :)

7 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Hi Jonas, using CocoaPods is the recommended approach, especially as it makes getting future updates very easy.

    Can you share the output/errors you're getting so we can help?

  • Jonas B.6's avatar
    Jonas B.6
    New member | Level 1
    10 years ago

    I dont really get an error message per say, since i dont get an xcode project file in the clone from cocoa pods or the direct download. I go to the github, i write "pod --version" in terminal and get 0.39.0 as the version. I then write the following:

    cd ~/desktop

     

    git clone https://github.com........(and the rest of the link from github)...

     

    here is a picture:

    ></p>

  • Jonas B.6's avatar
    Jonas B.6
    New member | Level 1
    10 years ago

    I am sorry i send the wrong picture.. this is what i meant to send></p>

  • Jonas B.6's avatar
    Jonas B.6
    New member | Level 1
    10 years ago

    Im sry

    but i still dont get it, im trying to follow the guide, but when it only says run "pod install" in the project directory i dont understand what it means.  

    ></p>

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

    The instructions say to put the "platform..." text in a file named "Podfile", but you've put it in a file named "Podfile.swift". 

    Then, you need to run pod install in your terminal. Your latest screenshot shows that, but it fails because you don't have a "Podfile" file for it to read.

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!