Swiftyjson: Xcode 8.1 so many errors

Created on 10 Dec 2016  路  11Comments  路  Source: SwiftyJSON/SwiftyJSON

i manually imported SwiftyJSON.swift but got so many compiling errors in SwiftyJSON.swift.

screen shot 2016-12-10 at 5 35 09 pm

question

All 11 comments

Hi @111jaam

  • Are you using CocoaPods or Carthage?
  • What's your CocoaPods or Carthage version?
  • Which version of SwiftyJSON are you using?

Hi,

I have the same problem

  1. CocoaPods
  2. CocoaPods 1.1.1
  3. SwiftyJSON 3.1.1

@jaceklapinski can you post the Podfile.lock ?

PODS:

  • Alamofire (3.5.1)
  • SwiftyJSON (3.1.1)

DEPENDENCIES:

  • Alamofire (~> 3.5)
  • SwiftyJSON

SPEC CHECKSUMS:
Alamofire: 0dfba1184a543e2aa160f4e39cac4e8aba48d223
SwiftyJSON: f0be2e604f83e8405a624e9f891898bf6ed4e019

PODFILE CHECKSUM: afc53677a2032fd75842210d6c54037528a01333

COCOAPODS: 1.1.1

@111jaam @jaceklapinski

  • Update podspec to latest
  • Delete Podfile.lock( 鈿狅笍 Backup your lock file before doing this)
  • Point SwiftyJSON's version to 3.1.1 or newer exactly

    pod 'SwiftyJSON', '= 3.1.1'

  • Pod install
  • Delete drived data before building

Good luck!

still same erros list

I ran the Xcode wizard for converting to current swift syntax and that took care of the issues.

same here when installing SwiftyJson pod many errors appears like the picture above

Is this still an issue with the current release?

To run project in swift 2.3, update your podfile -> pod 'SwiftyJSON', '2.4.0' and update pods, and you are done.

Hello, I just pushed 3.1.4 to CocoaPods and it should work. Feel free to open another issue if need.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DarthRamone picture DarthRamone  路  17Comments

j-h-a picture j-h-a  路  15Comments

FridaySG picture FridaySG  路  10Comments

Evertt picture Evertt  路  11Comments

Dershowitz011 picture Dershowitz011  路  15Comments