You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
ShiminCai
8 years agoHelpful | Level 6
Alamofire compilation errors after installing the SwiftyDropbox in Xcode project with CocoaPods
Hi there, Since the Dropbox API V1 has been turned off, the file download and upload in all our apps are not working any more. I'm now migrating to the API V2 and using Xcode 8.3.3 and Swift. ...
- 8 years ago
Thanks! That looks like a bug in SwiftyDropbox v4.2.0 when using Xcode 8. We'll look into it. In the meantime, you can use v4.1.2, by specifying it in your Podfile like:
pod 'SwiftyDropbox' => '4.1.2'
Then, do a `pod update`.
ShiminCai
Helpful | Level 6
Hi Greg-DB,
I replied the eamil sent to me from Dropbox Forum with the error info and steps of how I generated the errors. Did you get that email? Or do I need to put the info in this thread?
Thanks a lot for your help.
Shimin
Greg-DB
8 years agoDropbox Staff
ShiminCai I don't believe replying to the notification email sends the content anywhere I can access it. Please post the information in the thread here. (If you need to share it privately for some reason, you can open an API ticket here instead.)
- ShiminCai8 years agoHelpful | Level 6
Hi Greg-DB,
Many thanks for your reply and sorry I did not know that.
My development environment is Xcode 8.3.3, Swift 3.1 and CocoaPods 1.4.0.beta.1.
The project is a currently deployed enterprise app which uses pod 'Dropbox-iOS-SDK' (Dropbox api v1) to enable file download and upload. Building the project now does not generate any compilation errors.
Change the Podfile to install pod 'SwiftyDropbox'. The "pod install" removes Dropbox-iOS-SDK and installs
Alamofire (3.5.1) and SwiftyDropbox (3.3.1). The Terminal output is as below:
Last login: Fri Oct 6 08:44:21 on console
fcl1611-9syvsc2:~ shiminc$ cd projects
fcl1611-9syvsc2:projects shiminc$ cd fcmapapp2
fcl1611-9syvsc2:fcmapapp2 shiminc$ pod --version
1.4.0.beta.1
fcl1611-9syvsc2:fcmapapp2 shiminc$ pod install
Analyzing dependencies
Removing Dropbox-iOS-SDK
Downloading dependencies
Installing Alamofire (3.5.1)
Using ArcGIS-Runtime-SDK-iOS (10.2.5)
Using SVProgressHUD (2.1.2)
Installing SwiftyDropbox (3.3.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.
[!] The `FCMapApp [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-FCMapApp/Pods-FCMapApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `FCMapApp [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-FCMapApp/Pods-FCMapApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
fcl1611-9syvsc2:fcmapapp2 shiminc$
The 'pod update' runs ok and the Terminal output:
fcl1611-9syvsc2:fcmapapp2 shiminc$ pod update
Update all pods
Updating local specs repositories
$ /usr/bin/git -C /Users/shiminc/.cocoapods/repos/master fetch origin
--progress
remote: Counting objects: 1683, done.
remote: Compressing objects: 100% (1016/1016), done.
remote: Total 1683 (delta 1101), reused 1159 (delta 586), pack-reused 0
Receiving objects: 100% (1683/1683), 187.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1101/1101), completed with 351 local objects.
From https://github.com/CocoaPods/Specs
77c312d3207..032e4c6e436 master -> origin/master
$ /usr/bin/git -C /Users/shiminc/.cocoapods/repos/master rev-parse
--abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/shiminc/.cocoapods/repos/master reset --hard
origin/master
HEAD is now at 032e4c6e436 [Add] Yams 0.3.7
Analyzing dependencies
Pre-downloading: `SVProgressHUD` from `https://github.com/SVProgressHUD/SVProgressHUD.git`
Downloading dependencies
Using Alamofire (3.5.1)
Using ArcGIS-Runtime-SDK-iOS (10.2.5)
Installing SVProgressHUD 2.2.1 (was 2.1.2)
Using SwiftyDropbox (3.3.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.
[!] The `FCMapApp [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-FCMapApp/Pods-FCMapApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `FCMapApp [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-FCMapApp/Pods-FCMapApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
fcl1611-9syvsc2:fcmapapp2 shiminc$
Now building the project generates 267 compilation errors that are related to Alamofire:
I also tried to open the project in Xcode 9 and had the same problems.
Thanks a lot for your help.
Cheers,
Shimin
- Greg-DB8 years agoDropbox Staff
It looks like you're getting an old version of SwiftyDropbox (3.3.1) and consequently an old version of Alamofire (3.5.1). You should be getting 4.2.0 and 4.4.0, respectively.
It's not clear why you're getting the old versions though. Can you try the following?
pod cache clean --all pod repo update pod update
- ShiminCai8 years agoHelpful | Level 6
Hi Greg-DB,
Your reply helped figure out why I was getting old versions of SwityDropbox and Alamofire. It is the deployment platform specification in the Podfile. It was platform :ios, '8.0'. After changed it to platform :ios, '9.0', I now got the SwiftDropbox 4.2.0 and Alamofire 4.4.0, and all 267 Alamofire-related compilation errors are gone. Thank you.
However, I'm still getting a compilation error about SwiftyDropbox as shown below:
Cheers,
Shimin
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,911 PostsLatest Activity: 46 minutes agoIf 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!