SwiftyDropbox: SwiftDropbox is incompatible with iOS 4.2

I get runtime errors for Alamofire after migrating an app of mine (that uses SwiftDropbox) to Swift 4.2.

dyld: Symbol not found: _$S8Dispatch0A3QoSV0B6SClassO7utilityyA2EmFWC
  Referenced from: /Users/admin/Library/Developer/CoreSimulator/Devices/69F0BD96-7BB8-4B29-BE96-A423BA2FBD3C/data/Containers/Bundle/Application/CAAB9A58-4F89-4C85-BCDA-8ECF22D11731/VandelayExample.app/Frameworks/Alamofire.framework/Alamofire
  Expected in: /Users/admin/Library/Developer/CoreSimulator/Devices/69F0BD96-7BB8-4B29-BE96-A423BA2FBD3C/data/Containers/Bundle/Application/CAAB9A58-4F89-4C85-BCDA-8ECF22D11731/VandelayExample.app/Frameworks/libswiftDispatch.dylib
 in /Users/admin/Library/Developer/CoreSimulator/Devices/69F0BD96-7BB8-4B29-BE96-A423BA2FBD3C/data/Containers/Bundle/Application/CAAB9A58-4F89-4C85-BCDA-8ECF22D11731/VandelayExample.app/Frameworks/Alamofire.framework/Alamofire
(lldb) 

I think the underlying error is that SwiftyDropbox uses Alamofire 4.5. Bumping the dependency to the latest 4.7.x version could perhaps solve this problem.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Hi @greg-db

This is still not fully resolved. Sure, I can now remove the additional Alamofire line in my Cartfile and podspec and Xcode manages to build the project, but my pod can still not be linted, since SwiftyDropbox is still not migrated to Swift 4.2. This gives me the following lint error:

 -> VandelayDropbox (0.7.2)
...
    - ERROR | [iOS] xcodebuild:  SwiftyDropbox/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift:169:29: error: 'UIAlertControllerStyle' has been renamed to 'UIAlertController.Style'
...

[!] The spec did not pass validation, due to 3 errors and 3 warnings.