Failed to install SwiftyJSON

I want to include SwiftyJSON in my Xcode 6.3 project.

When I try to build it I get about 40 compiler errors. Most of them are like "AnyObject" does not convert to "String". You mean how! to provide suppression?

I followed these steps:

My best guess is that since I'm so new, I am missing some very "obvious" step.

Tutorial used: http://www.raywenderlich.com/82706/working-with-json-in-swift-tutorial

+3


source to share


2 answers


You are using Swift 2, but the main version of this framework is for Swift 1.2 (until Swift 2 exited beta). But you can use a different branch: Download here

EDIT: you really only need one file, which is correct here (Right click on RAW, then "Download linked file"). Then you can simply drag the downloaded file from the download folder into your project (select "Copy if needed") and it should be ready to go. I tried this myself and there was only one failure warning.



EDIT: Wow, I'm so sorry, I completely missed that you were using XCode 6.3. Of course you cannot use the XCode 7 branch here - this is the XCode 6.3 file version

+1


source


Your xcode is not updated to the version expected by the swiftyjson library.



0


source







All Articles