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 installation #168

Closed
alohabehappy opened this issue May 4, 2020 · 7 comments
Closed

Carthage installation #168

alohabehappy opened this issue May 4, 2020 · 7 comments

Comments

@alohabehappy
Copy link

Hello,
Can't install XCoordinator through Carthage

➜  Test carthage update --platform iOS
*** Fetching XCoordinator
*** Checking out XCoordinator at "2.0.7"
*** xcodebuild output can be found in /var/folders/0z/h2fdfd0955qbnz45l8r0ykxh0000gn/T/carthage-xcodebuild.DGeErQ.log
*** Downloading XCoordinator.framework binary at "XCoordinator 2.0.7"
***  Skipped installing XCoordinator.framework binary due to the error:
	"Incompatible Swift version - framework was built with 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15) and the local version is 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)."

    Falling back to building from the source
*** Building scheme "XCoordinator" in XCoordinator.xcodeproj
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -project /Users/vadim/Dev/Sandbox/Test/Carthage/Checkouts/XCoordinator/XCoordinator.xcodeproj -scheme XCoordinator -configuration Release -derivedDataPath /Users/vadim/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/XCoordinator/2.0.7 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/0z/h2fdfd0955qbnz45l8r0ykxh0000gn/T/XCoordinator SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/vadim/Dev/Sandbox/Test/Carthage/Checkouts/XCoordinator)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/0z/h2fdfd0955qbnz45l8r0ykxh0000gn/T/carthage-xcodebuild.DGeErQ.log

and the build log

    export variant=normal
    /bin/sh -c /Users/vadim/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/XCoordinator/2.0.7/Build/Intermediates.noindex/ArchiveIntermediates/XCoordinator/IntermediateBuildFilesPath/XCoordinator.build/Release-iphoneos/XCoordinator.build/Script-9BC82EBE233D8CE400C604A8.sh
/Users/vadim/Dev/Sandbox/Test/Carthage/Checkouts/XCoordinator: error: manifest parse error(s):
<unknown>:0: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX'
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-macosx10.10'

** ARCHIVE FAILED **

The following build commands failed:
	PhaseScriptExecution Run\ Script /Users/vadim/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/XCoordinator/2.0.7/Build/Intermediates.noindex/ArchiveIntermediates/XCoordinator/IntermediateBuildFilesPath/XCoordinator.build/Release-iphoneos/XCoordinator.build/Script-9BC82EBE233D8CE400C604A8.sh
(1 failure)
@antranapp
Copy link

antranapp commented May 6, 2020

I have the same issue.

XCoordinator version: 2.0.7
Xcode: 11.4.1
Mac: 10.15.4


I opened the XCoordinator project and seeing that it has deployment target macOS

Screenshot 2020-05-06 at 14 09 22

@antranapp
Copy link

antranapp commented May 6, 2020

I have fixed this by deleting the old project file and regenerate it using swift package generate-xcodeproj

PR is here #170

@antranapp
Copy link

After some investigation, I can see that something has changed with SPM in Xcode 11.4.1 . You can see my summary in the PR #170

A workround for now is to integrate RxSwift into XCoordinator using Carthage instead of SPM. I do that in my fork https://github.com/antranapp/XCoordinator/tree/xcode1141 and it works for me.

@alohabehappy
Copy link
Author

Thanks a lot!

@antranapp
Copy link

antranapp commented May 10, 2020

@pauljohanneskraft I reported the bug in RxSwfit repo and a maintainer of RxSwift project has replied and doesn't recommend SPM when using RxSwift ReactiveX/RxSwift#2127 (comment)

If you want I can create a PR from my fork to switch the integration to Carthage.

@pauljohanneskraft
Copy link
Collaborator

@antranapp Thanks for the help. Did the issue get resolved or what is the current status?

@pauljohanneskraft
Copy link
Collaborator

Closing this due to inactivity

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

No branches or pull requests

3 participants