-
Notifications
You must be signed in to change notification settings - Fork 937
failed when running carthage bootstrap #94
Description
My XCode versions is 8.3.3.
the output is
*** Checking out MMDB-Swift at "0.2.0"
*** Checking out FlagKit at "ea6885b10ae9bc69ad8e95a911dc0070861119c2"
*** Downloading KeychainAccess.framework binary at "v3.0.1"
*** Skipped installing KeychainAccess.framework binary due to the error:
"Incompatible Swift version - framework was built with swiftlang-800.0.46.2 clang-800.0.38 and the local version is swiftlang-802.0.53 > clang-802.0.42."
*** Checking out KeychainAccess at "v3.0.1"
*** xcodebuild output can be found in /var/folders/nc/zd7x3_bd16706vvnp6fvnpr40000gn/T/carthage-xcodebuild.N91BRr.log
*** Building scheme "FlagKit" in FlagKit.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/leo108/iOS/VPNOn/Carthage/Checkouts/FlagKit/FlagKit.xcodeproj -scheme FlagKit -configuration > Release -derivedDataPath /Users/leo108/Library/Caches/org.carthage.CarthageKit/DerivedData/FlagKit/ea6885b10ae9bc69ad8e95a911dc0070861119c2 > ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build (launched in /Users/> leo108/iOS/VPNOn/Carthage/Checkouts/FlagKit)This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/nc/zd7x3_bd16706vvnp6fvnpr40000gn/T/carthage-xcodebuild.N91BRr.log
the error in log file is
error: 'imageForResource' has been renamed to 'image(forResource:)'
guard let image = FlagKit.assetBundle.imageForResource(countryCode) else {return nil}
^~~~~~~~~~~~~~~~
image forResource:
:0: note: 'imageForResource' was obsoleted in Swift 3
/Users/leo108/iOS/VPNOn/Carthage/Checkouts/FlagKit/Source/Image.swift:21:31: error: 'CGImageForProposedRect(:context:hints:)' has been renamed > to 'cgImage(forProposedRect:context:hints:)'
guard let CGImage = image.CGImageForProposedRect(nil, context: nil, hints: nil) else {return nil}
^~~~~~~~~~~~~~~~~~~~~~
cgImage forProposedRect:
:0: note: 'CGImageForProposedRect(:context:hints:)' was obsoleted in Swift 3
/Users/leo108/iOS/VPNOn/Carthage/Checkouts/FlagKit/Source/Image.swift:22:10: error: 'init(CGImage:size:)' has been renamed to 'init(> cgImage:size:)'
self.init(CGImage:CGImage, size:image.size)
~^~~~ ~~~~~~~
cgImage
:0: note: 'init(CGImage:size:)' was obsoleted in Swift 3** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)>