Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Carthage build issue #41

Open
danielrhodes opened this issue Dec 20, 2016 · 5 comments
Open

Carthage build issue #41

danielrhodes opened this issue Dec 20, 2016 · 5 comments
Labels

Comments

@danielrhodes
Copy link

danielrhodes commented Dec 20, 2016

Since Swift isn't ABI stable yet, the prebuilt binaries that Carthage gets from Github on the releases page are not working with the latest versions of XCode/Swift. Would recommend that they be removed, as XCode won't build with them.

@honghaoz
Copy link
Owner

Hi @danielrhodes, thanks for your issue.

I tried with Carthage, the framework build by Carthage is good for me.

Here is my test project: TestJi.zip, works well.

What errors did you get?

@danielrhodes
Copy link
Author

The error I got was that the project was built with Swift 3 and not 3.0.1. Not a source level issue, but whatever pre-built binaries you have on Github which Carthage is using instead of compiling the library locally.

@honghaoz
Copy link
Owner

@danielrhodes There's no pre-build binaries on GitHub, Carthage should build the framework locally.

I guess the error is caused by your target's Use Legacy Swift Language Version settings. Because setting to "No" in Xcode 8.2 results in SWIFT_VERSION = 3.0, while Xcode 8.1 sets to 3.0.1

@danielrhodes
Copy link
Author

danielrhodes commented Dec 23, 2016

That is likely. My project is on 3.0.2.

@honghaoz
Copy link
Owner

Xcode 8.2 just uses SWIFT_VERSION = 3.0 instead of 3.0.x.
Will you be able to provide a sample project with the error you met?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants