Moya: Carthage update using xcframeworks failed

Build failed with exit code 65 while running carthage update --use-xcframeworks Moya version: “14.0.1” ; Cartfile: github "Moya/Moya" ~> 14.0

Error:

Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/mojtabaalmoussawi/Developer/pharmac/Carthage/Checkouts/Moya/Moya.xcodeproj -scheme Moya -configuration Release -derivedDataPath /Users/mojtabaalmoussawi/Library/Caches/org.carthage.CarthageKit/DerivedData/12.4_12D4e/Moya/14.0.1 -sdk iphonesimulator -destination platform=iOS\ Simulator,id=B2E7F49C-0BE2-4E7E-9340-CCCB709CDD2C -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build VALIDATE_WORKSPACE=NO FRAMEWORK_SEARCH_PATHS=$(inherited)\ /var/folders/xm/mbx8hpmx2vj7r45hk83mwyjh0000gn/T/carthage-xcframework-ELuM (launched in /Users/mojtabaalmoussawi/Developer/pharmac/Carthage/Checkouts/Moya)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/xm/mbx8hpmx2vj7r45hk83mwyjh0000gn/T/carthage-xcodebuild.3egBaS.log

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 6
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I’m on an M1 mac

After doing this carthage bootstrap --platform iOS --use-xcframeworks

I get this error:

*** Building scheme “RxTest” in Rx.xcworkspace *** Building scheme “Moya” in Moya.xcodeproj Build Failed Task failed with exit code 65: This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/lr/x2lngmyn63v95xk121r1vxkm0000gn/T/carthage-xcodebuild.CzzglN.log

** BUILD FAILED **

Then when I check the log, it shows this:

The following build commands failed: CompileSwift normal arm64 (in target ‘Moya’ from project ‘Moya’) CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target ‘Moya’ from project ‘Moya’) CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler (in target ‘Moya’ from project ‘Moya’) CompileSwift normal i386 (in target ‘Moya’ from project ‘Moya’) CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target ‘Moya’ from project ‘Moya’) CompileSwift normal x86_64 (in target ‘Moya’ from project ‘Moya’) (6 failures)

Moya team, would be nice if you created a PR to fix this issue or advise a solution. Thanks!

my workaround was migrating from Carthage to Pods

I see. That is helpful. I’ll look into it further, thanks @tringuyen623!

That seems to have issues with RxSwift; are you using RxMoya here?

Also, that log seems to show a bunch of errors due to the device being locked; I don’t think these are related, but something to check nonetheless.

Can you share the xcodebuild log? Also, let’s see if this is still an issue with 15.0.0 which we’re about to release. If not, we’ll have to look into it further to resolve it from there. 😃

carthage-xcodebuild.PKZcpv.log