wvteijlingen / Spine

A Swift library for working with JSON:API APIs. It supports mapping to custom model classes, fetching, advanced querying, linking and persisting.
MIT License
264 stars 109 forks source link

Couldn't compile it. #145

Closed sachin-sat closed 7 years ago

sachin-sat commented 7 years ago

It says that "Module compiled with Swift 3.0 cannot be imported in Swift 3.0.2" . What should i do?

sachin-sat commented 7 years ago

it happens while updating carthage(platform iOS). I'm using swift-3.0 branch. Also tried master one.

CompileSwift normal arm64 CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler

sachin-sat commented 7 years ago

It seems that Some of the frameworks(BrightFuture, Result) are compiled in Swift 3.0.2 and some(Spine and SwiftyJson) are complied in Swift 3.0.

So i can't use either xcode 8 or 8.2.1. :-(

wvteijlingen commented 7 years ago

I don't think this is a problem with Spine itself. If you use Carthage, make sure you update and rebuild te packages. Best thing would be to use the --no-use-binaries flag to make sure they are compiled for the correct Swift version.