EthereumKit icon indicating copy to clipboard operation
EthereumKit copied to clipboard

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

Open qinzhibo opened this issue 5 years ago • 4 comments

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

qinzhibo avatar Apr 01 '19 08:04 qinzhibo

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

yuzushioh avatar Apr 01 '19 09:04 yuzushioh

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?

qinzhibo avatar Apr 01 '19 10:04 qinzhibo

Try to run without --no-use-binaries

yuzushioh avatar Apr 01 '19 10:04 yuzushioh

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?

qinzhibo avatar Apr 02 '19 01:04 qinzhibo