Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carthage update using xcframeworks failed #2165

Open
mojtaba-almoussawi opened this issue Jun 30, 2021 · 15 comments
Open

Carthage update using xcframeworks failed #2165

mojtaba-almoussawi opened this issue Jun 30, 2021 · 15 comments
Labels

Comments

@mojtaba-almoussawi
Copy link

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
@peril-moya peril-moya bot added the carthage label Jun 30, 2021
@wirasetiawan29
Copy link

+1

fgulan added a commit to infinum/Japx that referenced this issue Aug 31, 2021
Carthage currently doesn't work with Moya - Moya/Moya#2165
@tringuyen623
Copy link

Any solution yet? I have the same issue

@BasThomas
Copy link
Contributor

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. :)

@tringuyen623
Copy link

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

@BasThomas
Copy link
Contributor

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.

@tringuyen623
Copy link

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.

No I'm not using RxMoya here? I tried to remove another libs, just keep Moya, the issue has gone. But after I add RxSwift it error again. Any solution for that?

@BasThomas
Copy link
Contributor

Hm, so are you sure this is a Moya related issue in your case, instead of an issue related to RxSwift? Not sure if this one is on us. 😄

@tringuyen623
Copy link

tringuyen623 commented Sep 3, 2021

Hm, so are you sure this is a Moya related issue in your case, instead of an issue related to RxSwift? Not sure if this one is on us. 😄

I'm not sure, when I use RxSwift without Moya it build with no issue, same for use Moya without RxSwift. Can't use both of them together. But it print out:
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/......./Carthage/Checkouts/Moya/Moya.xcodeproj -scheme RxMoya -configuration Release -derivedDataPath /Users/tri/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5.1_12E507/Moya/14.0.1 -sdk appletvos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/6l/tlxr_4sj2lbbz32qpklnz9j40000gn/T/Moya SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO FRAMEWORK_SEARCH_PATHS=$(inherited)\ /var/folders/6l/tlxr_4sj2lbbz32qpklnz9j40000gn/T/carthage-xcframework-UY30 (launched in /Users/........./Carthage/Checkouts/Moya)

@BasThomas
Copy link
Contributor

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

@RajaveluC
Copy link

I am facing the same issue as described here #2134 (comment). @BasThomas , Thanks for looking into this.

If I use, the following versions of RxSwift and Moya, it works fine.
github "ReactiveX/RxSwift" "5.1.2"
github "Moya/Moya" ~> 15.0.0-alpha.1

However, if I use the latest versions as below, I am facing the same issue as described by @tringuyen623
github "ReactiveX/RxSwift" ~> 6.2.0
github "Moya/Moya" ~> 15.0.0

Command: carthage update --use-xcframeworks --platform iOS --new-resolver
Terminal output:
*** Fetching RxSwift
*** Fetching Moya
*** Fetching ReactiveSwift
*** Checking out RxSwift at "6.2.0"
*** Checking out ReactiveSwift at "6.7.0"
*** Checking out Moya at "15.0.0"
*** Downloading RxSwift binary at "Ethan.2"
*** Building scheme "ReactiveSwift-iOS" in ReactiveSwift.xcworkspace
*** Building scheme "Moya" in Moya.xcodeproj
*** Building scheme "ReactiveMoya" in Moya.xcodeproj
*** Building scheme "RxMoya" in Moya.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/.../Carthage/Checkouts/Moya/Moya.xcodeproj -scheme RxMoya -configuration Release -derivedDataPath /Users/rajavelu_cs/Library/Caches/org.carthage.CarthageKit/DerivedData/12.5.1_12E507/Moya/15.0.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/ws/wjh3n_5974v2tbykn1k5v_0w0000gq/T/Moya SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO FRAMEWORK_SEARCH_PATHS=$(inherited)\ /var/folders/ws/wjh3n_5974v2tbykn1k5v_0w0000gq/T/carthage-xcframework-OwEf (launched in /Users/.../Carthage/Checkouts/Moya)

@RajaveluC
Copy link

Hi @BasThomas , Do you have any update on this issue for us?

@BasThomas
Copy link
Contributor

Hey sorry, I haven't been able to dedicate time to Moya lately. We'd very much welcome pull requests!

@stherold
Copy link

stherold commented Feb 3, 2022

A new collegue received a M1 MacBook and is now not able to build anymore 😑. A simple folder with just a Cartfile containing only the Moya dependency demonstrates this very well already.

We then calling carthage bootstrap --use-ssh --platform iOS --use-xcframeworks --no-use-binaries

We will generate a fork and create a PR maybe you can tell us if this is working not for the community :)

Works on intel Mac / Won't work on M1:
dependencies-carthage.zip

@grantespo
Copy link

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!

@grantespo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants