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

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler #163

Open
qinzhibo opened this issue Apr 1, 2019 · 4 comments

Comments

@qinzhibo
Copy link

qinzhibo commented Apr 1, 2019

What can I do with this error?
Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0 compiler:

@yuzushioh
Copy link
Owner

You need to build it again by running carthage update --platform ios --no-use-binaries

@qinzhibo
Copy link
Author

qinzhibo commented Apr 1, 2019

After running carthage update --platform ios --no-use-binaries,I can see this error:

DanielMacBook-Pro:CZR_Wallet的副本 xiaofufu$ carthage update --platform ios --no-use-binaries
*** Fetching EthereumKit
*** Fetching CryptoEthereumSwift
*** Cloning CryptoSwift
*** Checking out EthereumKit at "2.0.1"
*** Checking out CryptoSwift at "1.0.0"
*** Checking out CryptoEthereumSwift at "2.0.0"
*** xcodebuild output can be found in /var/folders/4p/kfvx0bg503lgfs6mpm_3_9900000gn/T/carthage-xcodebuild.C0Hx64.log
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "CryptoEthereumSwift" in CryptoEthereumSwift.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/xiaofufu/Desktop/CZR_Wallet的副本/Carthage/Checkouts/CryptoEthereumSwift/CryptoEthereumSwift.xcodeproj -scheme CryptoEthereumSwift -configuration Release -derivedDataPath /Users/xiaofufu/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/CryptoEthereumSwift/2.0.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/4p/kfvx0bg503lgfs6mpm_3_9900000gn/T/CryptoEthereumSwift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/xiaofufu/Desktop/CZR_Wallet的副本/Carthage/Checkouts/CryptoEthereumSwift)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/4p/kfvx0bg503lgfs6mpm_3_9900000gn/T/carthage-xcodebuild.C0Hx64.log

Do you know what can I do for this?

@yuzushioh
Copy link
Owner

Try to run without --no-use-binaries

@qinzhibo
Copy link
Author

qinzhibo commented Apr 2, 2019

After running carthage update --platform ios,I can see this error:
The following build commands failed:
CompileSwift normal armv7
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
CompileSwift normal arm64
(3 failures)
Do you know what can I do for this?

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

2 participants