We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Jonas B.6
10 years agoNew member | Level 1
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-DB10 years ago
Dropbox Community Moderator
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.610 years agoNew member | Level 1
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:

- Greg-DB10 years ago
Dropbox Community Moderator
Jonas, it looks like you're trying to add the DropboxSimpleOAuth project, which isn't an official Dropbox project. It does use SwiftyDropbox though, and does seem to have a .xcodeproj.
But in any case, the instructions for installing SwiftyDropbox in a project can be found here:
https://www.dropbox.com/developers/documentation/swift#install
- Jonas B.610 years agoNew member | Level 1
I am sorry i send the wrong picture.. this is what i meant to send

- Greg-DB10 years ago
Dropbox Community Moderator
In this screenshot you're just cloning the SwiftyDropbox project itself. To install it into your own Xcode project, follow the instructions here:
https://www.dropbox.com/developers/documentation/swift#install
If you get an error that you need help with during that, please post the output.
- Jonas B.610 years agoNew member | Level 1
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.

- Greg-DB10 years ago
Dropbox Community Moderator
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
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!