-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 update/bootstrap download Swift 3.1 RealmSwift module for swift 4 #5384
Comments
The output you've shared indicates that you're using Xcode 9 to when building, but your currently active command-line tools are from an older version of Xcode (Xcode 8.3.x). You need to use the same Xcode version for both to ensure that Carthage gives you frameworks built for the appropriate Swift version. You can run |
What? I only have Xcode9 installed..
This can also confirm. But shall I point to just Xcode.app or keep Xcode.app/Contents/Developer? |
It’s also possible the issue is that the version of Carthage you’re using predates detecting that prebuilt binaries were built with a different Swift version. v0.17.2 is far behind the most recent version of Carthage, which I think is currently v0.26.2. Can you try updating to a recent version of Carthage? |
v0.20.0 or newer of Carthage has the support for falling back to building from source if the prebuilt binaries are built with a different version of Xcode than you’re using locally. |
oh yeah, thanks for pointing this out! I don't realize it's a feature of carthage |
I updated ChartsRealm(https://github.com/danielgindi/ChartsRealm) dependency finally, carthage update works fine, downloaded Realm 2.10.2 as expected. However when building ChartsRealm demo, Xcode9 complains
I then delete carthage folder and run
carthage bootstrap
again, showing build successful but still the same error. It looks like a wrong module is downloaded. How do we correct it? (build both for arm and x86 arch are the same error)Carthage output log:
Realm framework version: 2.10.2
Xcode version: 9
iOS/OSX version: 11
Dependency manager + version: carthage 0.17.2
The text was updated successfully, but these errors were encountered: