cannot build project with xcode 8 beta 6
Asked Answered
F

2

0

I am getting following error after I add a library via carthage -

library name compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64

I have tried it with Argo library. (https://github.com/thoughtbot/Argo)

I have selected the correct xcode version using xcode-select utility.

What could be the problem? Any help is greatly appreciated

Thanks!

Fireweed answered 2/9, 2016 at 11:56 Comment(0)
B
1

From what I learned, looks like you can't have libraries written in different versions of Swift.

In my Obj-C project I had 2 libs installed with CocoaPods I updated the first one using the swift3 branch on github, and I converted the second one with Xcode.

Everything is building properly now!

Bant answered 6/9, 2016 at 7:46 Comment(0)
A
0

This is happening as you've included another library (via cocoa pods or by linking the library directly etc...) which is compiled (or being compiled) in swift 2.

I've seen this a lot with Cocoapods (and Carthage)

Affairs answered 2/9, 2016 at 13:0 Comment(1)
I am using master branch of Argo (which they say is compatible with Swift 3.0) and using "swift3" branches of other projects. Still it doesn't workFireweed

© 2022 - 2024 — McMap. All rights reserved.