Ji icon indicating copy to clipboard operation
Ji copied to clipboard

Carthage build issue

Open danielrhodes opened this issue 8 years ago • 5 comments

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.

danielrhodes avatar Dec 20 '16 12:12 danielrhodes

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?

honghaoz avatar Dec 21 '16 16:12 honghaoz

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.

danielrhodes avatar Dec 21 '16 18:12 danielrhodes

@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

honghaoz avatar Dec 22 '16 19:12 honghaoz

That is likely. My project is on 3.0.2.

danielrhodes avatar Dec 23 '16 10:12 danielrhodes

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?

honghaoz avatar Dec 23 '16 15:12 honghaoz