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 reports incompatible Swift version even for 5.1+ #2887

Open
michaeleisel opened this issue Oct 8, 2019 · 7 comments
Open

Carthage reports incompatible Swift version even for 5.1+ #2887

michaeleisel opened this issue Oct 8, 2019 · 7 comments
Labels

Comments

@michaeleisel
Copy link

@michaeleisel michaeleisel commented Oct 8, 2019

  • carthage install method: [ ] .pkg, [X] homebrew, [ ] source
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.33.0
  • xcodebuild -version: Xcode 11.1, Build version 11A1027
  • Are you using --no-build? nay
  • Are you using --no-use-binaries? nay
  • Are you using --use-submodules? nay
  • Are you using --cache-builds? nay
  • Are you using --new-resolver? nay

Cartfile

github "michaeleisel/ZippyJSON"

Carthage Output

$ carthage bootstrap
*** No Cartfile.resolved found, updating dependencies
*** Fetching ZippyJSON
*** Fetching JJLISO8601DateFormatter
*** Fetching ZippyJSONCFamily
*** Checking out JJLISO8601DateFormatter at "0.1.2"
*** Checking out ZippyJSON at "0.0.5"
*** Checking out ZippyJSONCFamily at "0.0.2"
*** xcodebuild output can be found in /var/folders/sw/034qgw2d2351s4ljqcj4z_1c0000gn/T/carthage-xcodebuild.PFtSDv.log
*** Downloading JJLISO8601DateFormatter.framework binary at "0.1.2"
*** Downloading ZippyJSONCFamily.framework binary at "0.0.2"
*** Downloading ZippyJSON.framework binary at "0.0.5"
***  Skipped installing ZippyJSON.framework binary due to the error:
	"Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.38.29 clang-1100.0.20.14) and the local version is 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)."

    Falling back to building from the source
*** Skipped building ZippyJSON due to the error:
Dependency "ZippyJSON" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/michaeleisel/ZippyJSON/issues/new

Actual outcome
Carthage reported that one version of 5.1 is incompatible with another

Expected outcome
Carthage should accept any versions of Swift 5.1+ to be compatible, because of module stability

@tmspzz tmspzz added the enhancement label Oct 8, 2019
azeff added a commit to azeff/Carthage that referenced this issue Oct 11, 2019
azeff added a commit to azeff/Carthage that referenced this issue Oct 15, 2019
…ue to module stability (Carthage#2887)
azeff added a commit to azeff/Carthage that referenced this issue Oct 16, 2019
…ue to module stability (Carthage#2887)
@EmDee

This comment has been minimized.

Copy link

@EmDee EmDee commented Nov 5, 2019

I'm getting the same error message with the latest Xcode (11.2, 11B52):

Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) and the local version is 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9).

Are there any known workarounds?

@DavidBrunow

This comment has been minimized.

Copy link
Contributor

@DavidBrunow DavidBrunow commented Nov 5, 2019

A workaround would be to install an older version of Xcode on your system that uses Swift 5.1 (I believe Xcode 11.1 would work) and use the command line tools from that version of Xcode instead of the command line tools from Xcode 11.2.

@michaeleisel

This comment has been minimized.

Copy link
Author

@michaeleisel michaeleisel commented Nov 5, 2019

It looks like they added some changes a few weeks ago to fix it... they didn’t work?

@jdhealy

This comment has been minimized.

Copy link
Member

@jdhealy jdhealy commented Nov 5, 2019

@michaeleisel, those changes are about compiling carthage-the-tool, not invocations that carthage makes.

@DavidBrunow

This comment has been minimized.

Copy link
Contributor

@DavidBrunow DavidBrunow commented Nov 5, 2019

I'll try to get a pull request up today or tomorrow to handle module stability properly on the invocations that Carthage makes.

@DavidBrunow

This comment has been minimized.

Copy link
Contributor

@DavidBrunow DavidBrunow commented Nov 5, 2019

Here is that pull request: #2902

@cornr

This comment has been minimized.

Copy link

@cornr cornr commented Nov 8, 2019

Same error here after updating to Xcode 11.2.1 with aws-sdk-ios (build with Xcode 11.2 and Swift Compiler 5.1).
Looking forward to this fix. It takes ages to build aws-sdk-ios from scratch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.