OAuthSwift / OAuthSwiftAlamofire

Utility method to sign Alamofire request
MIT License
104 stars 38 forks source link

Running Carthage Update Fails - Apple Silicon #37

Open nashysolutions opened 3 years ago

nashysolutions commented 3 years ago

I am using Apple Silicon. The Carthage website suggests the use of flag --use-xcframeworks.

carthage update --use-xcframeworks

*** Cloning OAuthSwiftAlamofire
*** Cloning OAuthSwift
*** Cloning Alamofire
*** Checking out Alamofire at "5.4.1"
*** Checking out OAuthSwiftAlamofire at "0.2.0"
*** Checking out OAuthSwift at "2.1.2"
*** xcodebuild output can be found in /var/folders/n0/yy5pk5ns3pb6v2hdqf_pwsv00000gn/T/carthage-xcodebuild.XKiEWr.log
*** Building scheme "Alamofire watchOS" in Alamofire.xcworkspace
*** Building scheme "Alamofire tvOS" in Alamofire.xcworkspace
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
^[[C*** Building scheme "Alamofire macOS" in Alamofire.xcworkspace
*** Building scheme "OAuthSwiftTVOS" in OAuthSwift.xcworkspace
*** Building scheme "OAuthSwiftWatchOS" in OAuthSwift.xcworkspace
*** Building scheme "OAuthSwift" in OAuthSwift.xcworkspace
*** Building scheme "OAuthSwiftMacOS" in OAuthSwift.xcworkspace
*** Building scheme "OAuthSwift-Alamofire" in OAuthSwift-Alamofire.xcworkspace
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -workspace /Users/robertnash/Code/Monster/Carthage/Checkouts/OAuthSwiftAlamofire/OAuthSwift-Alamofire.xcworkspace -scheme OAuthSwift-Alamofire -configuration Release -derivedDataPath /Users/robertnash/Library/Caches/org.carthage.CarthageKit/DerivedData/12.4_12D4e/OAuthSwiftAlamofire/0.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/n0/yy5pk5ns3pb6v2hdqf_pwsv00000gn/T/OAuthSwiftAlamofire SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/robertnash/Code/Monster/Carthage/Checkouts/OAuthSwiftAlamofire)

This usually indicates that project itself failed to compile.
nashysolutions commented 3 years ago

Workaround

Use SPM to fetch Alamofire and OAuthSwift independently.

Then add these two source files directly into project.