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

Dennis B.20's avatar
Dennis B.20
New member | Level 1
9 years ago

Problems building SwiftyDropbox for MacOS with Carthage

When I follow the directions for installing SwiftyDropbox for MacOS with Charthage on the Github README page, I get errors and a failure to build the SwiftyDropbox framework. The AlamoFire framework builds without any problems. I AM able to build the iOS SwiftyDropbox framework. This has happened on the two Macs I have access to for development. The Terminal output for the entire process follows. Hopefully somebody can help me get this to work.

10:00:01-dennis~/Desktop/CarthageDrop$ carthage update --platform Mac
*** Fetching SwiftyDropbox
*** Fetching Alamofire
*** Checking out Alamofire at "4.0.0"
*** Checking out SwiftyDropbox at "4.0.3"
*** xcodebuild output can be found in /var/folders/h7/c3b7nbhj2yj9plyz82qzz9x40000gn/T/carthage-xcodebuild.1zy95c.log
*** Building scheme "Alamofire OSX" in Alamofire.xcworkspace
2016-09-20 10:00:19.874 xcodebuild[89533:16108184] [MT] DVTPlugInManager: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for KSImageNamed.ideplugin (com.ksuther.KSImageNamed) not present
*** Building scheme "SwiftyDropbox_macOS" in SwiftyDropbox.xcodeproj
2016-09-20 10:00:29.590 xcodebuild[89587:16108530] [MT]

** BUILD FAILED **


The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:11:1: error: expressions are not allowed at the top level
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:11:5: error: consecutive statements on a line must be separated by ';'
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:13:5: error: expected declaration
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:13:9: error: consecutive declarations on a line must be separated by ';'
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:15:5: error: expected declaration
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:15:9: error: consecutive declarations on a line must be separated by ';'
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:17:5: error: expected declaration
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:17:9: error: consecutive declarations on a line must be separated by ';'
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:19:5: error: expected declaration
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:19:9: error: consecutive declarations on a line must be separated by ';'
/Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/Source/PlatformNeutral/Base.swift:9:8: error: module compiled with Swift 3.0 cannot be imported in Swift 2.3: /Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/SwiftyDropbox/../../Carthage/Build/Mac/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule
A shell task (/usr/bin/xcrun xcodebuild -project /Users/dennis/Desktop/CarthageDrop/Carthage/Checkouts/SwiftyDropbox/Source/SwiftyDropbox/SwiftyDropbox.xcodeproj -scheme SwiftyDropbox_macOS -configuration Release ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
2016-09-20 10:00:29.590 xcodebuild[89587:16108530] [MT] DVTPlugInManager: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for KSImageNamed.ideplugin (com.ksuther.KSImageNamed) not present
** BUILD FAILED **


The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

  • @Dennis B.: Sorry about the issues. The .xcodeproj in the main repo wasn't set to Swift 3.0 for the macOS target. The problem should be fixed now.

    Try re-pulling from Carthage with the following Cartfile:

    # SwiftyDropbox
    github "https://github.com/dropbox/SwiftyDropbox" ~> 4.0.4

    and the following command:

    carthage update --platform Mac

    and let me know if that resolves your issue. Thanks for your patience!

  • Dennis B.20's avatar
    Dennis B.20
    New member | Level 1

    Hi Stephen C.,

    That allowed me to successfully build the OSX version of SwiftyDropbox with Carthage. Now I can look forward to actually trying to use it as time allows.

    Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,912 PostsLatest Activity: 4 minutes ago
333 Following

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 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!