Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 8 beta 6 #593

Closed
Xedart opened this issue Aug 16, 2016 · 13 comments
Closed

Xcode 8 beta 6 #593

Xedart opened this issue Aug 16, 2016 · 13 comments

Comments

@Xedart
Copy link

Xedart commented Aug 16, 2016

Library doesn't work with the latest Swift 3.0 release which is shipped with Xcode 8 beta 6. Perhaps somebody knows how to fix it?

@rudenik
Copy link

rudenik commented Aug 16, 2016

+1

@blwinters
Copy link

I was able to make small changes in many places to update the syntax as needed, but I'm stumped on this last one. In SwiftyJSON.swift I have 10 errors that say something similar to:

Cannot invoke 'JSON.init' with an argument list of type '([AnyObject])'

Any ideas as to why the initializers aren't working?

@haginile
Copy link

haginile commented Aug 16, 2016

@blwinters Changing AnyObject to Any should fix the problem.

@rudenik
Copy link

rudenik commented Aug 16, 2016

Check here,

8971384

This fixed pretty much everything for me.

@blwinters
Copy link

blwinters commented Aug 16, 2016

@rudenik @haginile That did the trick. Thanks!

@itman85
Copy link

itman85 commented Aug 17, 2016

I got 62 errors in Xcode8 beta 6, these are some of them:
SwiftyJSON.swift:772:35: Expected ',' joining parts of a multi-clause condition
SwiftyJSON.swift:70:59: Value of type 'Any' does not conform to specified type 'AnyObject'
SwiftyJSON.swift:110:14: Cannot invoke 'JSON.init' with an argument list of type '([AnyObject])'
SwiftyJSON.swift:144:29: Return expression of type '[AnyObject]' does not conform to 'AnyObject'
SwiftyJSON.swift:146:29: Return expression of type '[String : AnyObject]' does not conform to 'AnyObject'
SwiftyJSON.swift:148:29: Return expression of type 'String' does not conform to 'AnyObject'
SwiftyJSON.swift:233:27: Use of unresolved identifier 'rawArray'
...........

@rudenik
Copy link

rudenik commented Aug 17, 2016

@itman85 Check my previous post. The link has the answers you are looking for.

@itman85
Copy link

itman85 commented Aug 18, 2016

@rudenik Thank you

@AnYuan
Copy link

AnYuan commented Aug 18, 2016

this pull request may help.

@picciano
Copy link

I used @rudenik 's solution. Works great, thanks. Let's get this fix merged!

@Lawris
Copy link

Lawris commented Aug 23, 2016

@picciano Same here

@eggswift
Copy link

eggswift commented Sep 2, 2016

Carthage use this fork https://github.com/eggswift/SwiftyJSON

@zhigang1992
Copy link
Contributor

Swift3 and Swift2.3 support is here

Closing this one to cleanup the issue list, feel free to reopen this if needed.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants