cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to make our Community work for you and we need your help. Take our short survey!
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Won't build via carthage with Xcode 12

Highlighted

Won't build via carthage with Xcode 12

Explorer | Level 3

Updated to macOS Catalina and Xcode 12 (GM).  Went to re-build SwiftyDropbox via carthage and got a build failure:

 

% carthage update --platform iOS
*** Fetching SwiftyDropbox
*** Fetching Alamofire
*** Checking out Alamofire at "4.9.1"
*** Checking out SwiftyDropbox at "5.1.0"
*** xcodebuild output can be found in /var/folders/_5/5l75kztx2js6d20w3rsyh45c0000gn/T/carthage-xcodebuild.vwNKbg.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
Build Failed
	Task failed with exit code 1:
	/usr/bin/xcrun lipo -create /Users/randy/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Alamofire/4.9.1/Build/Intermediates.noindex/ArchiveIntermediates/Alamofire\ iOS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework/Alamofire /Users/randy/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Alamofire/4.9.1/Build/Products/Release-iphonesimulator/Alamofire.framework/Alamofire -output /Users/randy/projects/Colorado-CRS/Carthage/Build/iOS/Alamofire.framework/Alamofire

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/_5/5l75kztx2js6d20w3rsyh45c0000gn/T/carthage-xcodebuild.vwNKbg.log

Worked OK on macOS Mojave and Xcode 11.3.1 immediately prior.  Anyone know if this is a known issue, or how I can get past it?

 

3 Replies 3
Highlighted

Re: Won't build via carthage with Xcode 12

Dropboxer
Dropboxer

Thanks for the report! I just gave this a try on macOS Catalina with Xcode 12 GM though, and it didn't fail for me. Can you let me know what your Cartfile look likes and what version of Carthage you're using? Edit: disregard this. I can reproduce this issue now. It looks like my Carthage was still using an old version of Xcode when I first tried this.

 

Also, it looks like this may be the issue reported for Carthage here: https://github.com/Carthage/Carthage/issues/3019 . Can you try the workaround offered there? (Actually, it looks like there may be more than one to try, and it may depend on your project config.)

Highlighted

Re: Won't build via carthage with Xcode 12

Explorer | Level 4

I'm seeing an identical issue since upgrading to Xcode 12. I thought it might have to do with Alamofire, but I don't see much in the build log. There is this warning, but not sure it's relevant:

 

warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Alamofire iOS' from project 'Alamofire')

 

Please advise, if you figure anything out.

Highlighted

Re: Won't build via carthage with Xcode 12

Explorer | Level 4

I saw on another thread that SwiftyDropbox is now available as a Swift Package (v 6.02). You can find it here:

 

https://github.com/dropbox/SwiftyDropbox

 

This is probably the way to go now.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?