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 fails to build Swift 2.3 targets in Xcode 8 beta 4 #1415
Comments
This is not a Carthage issue. It seems that |
@ikesyo The same issue with XCode 8 beta 6. |
I'm having this issue brand new xcode 8 (app store) build and a brand new xcode project with one dep: https://github.com/marmelroy/PhoneNumberKit/tree/swift3.0 worked perfectly fine with xcode 8 GM (pre app store) |
Verified it's the swift3.0 branch of the dependency. Verified that the dependency project itself builds in xcode with no problems.
|
Nevermind - doesn't build for watchOS in xcode itself. Same error. trying |
Same error happened as above. Logs show as below: In Build Settings, each target should make sure it chooses "YES" or "NO" instead of unspecified for "Use Legacy Swift Language Version". |
@gangzimo I'm not sure without the specific library information you are trying to build. But Carthage does not touch the build setting, so the error should be the project setting issue. |
I am having trouble building Swift 2.3 targets in Carthage 0.17.2 using Xcode 8 beta 4.
The issue seems to be that the
SWIFT_VERSION
needs to be passed on the command line to/usr/bin/xcrun xcodebuild
even thoughSWIFT_VERSION
is explicitly specified in the Xcode project itself.I've got a fork of SwiftyJSON in which I've created a
swift2.3
branch where the targets were updated in Xcode to use Swift 2.3.I reference this in a
Cartfile
as:When attempting to do
carthage update
, I get the following error:This occurs despite the project already being updated; the
SWIFT_VERSION
is already set to2.3
. The error happens with the following command:Adding
SWIFT_VERSION=2.3
to the command works:I suspect the SWIFT_VERSION needs to be copied over to the command line in the same way that the BITCODE_GENERATION_MODE setting is.
carthage version
: 0.17.2xcodebuild -version
: Xcode 8.0Build version 8S188o
--no-build
? NO--no-use-binaries
? NO--use-submodules
? NOThe text was updated successfully, but these errors were encountered: