We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
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`.
Greg-DB
8 years agoDropbox Staff
Hi Shimin, did you have Xcode try to convert the version of Swift code for the pods by any chance? The pods currently use Swift 3 and the code shouldn't be modified. If you did have Xcode modify them, uninstall and re-install them to get clean versions.
Otherwise, can you share the errors you're getting so we can take a look? Thanks in advance!
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s):
https://www.dropbox.com/developers/contact
Otherwise, can you share the errors you're getting so we can take a look? Thanks in advance!
By the way, if you need more time to migrate your app to API v2, we can offer an extension for access to API v1. To request that, please open an API ticket with the relevant app key(s):
https://www.dropbox.com/developers/contact
- ShiminCai8 years agoHelpful | 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-DB8 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
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!