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

Swift3 branch with Xcode 8 Beta 6 not compiling #602

Closed
valheru7 opened this issue Aug 25, 2016 · 2 comments
Closed

Swift3 branch with Xcode 8 Beta 6 not compiling #602

valheru7 opened this issue Aug 25, 2016 · 2 comments

Comments

@valheru7
Copy link

valheru7 commented Aug 25, 2016

Installed with cocoapods like so:

pod 'SwiftyJSON',
        :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git',
        :branch => 'swift3'

also adding this at the bottom:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
  end

Numerous (~67) errors result in SwiftyJSON. Some are:

SwiftyJSON.swift:772:35: Expected ',' joining parts of a multi-clause condition
SwiftyJSON.swift:635:23: No type named 'Boolean' in module 'Swift'
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:125:14: Cannot invoke 'JSON.init' with an argument list of type '([String : AnyObject])'
SwiftyJSON.swift:347:22: 'rawDictionary' is inaccessible due to 'private' protection level
SwiftyJSON.swift:144:29: Return expression of type '[AnyObject]' does not conform to 'AnyObject'
etc etc etc

@AnYuan
Copy link

AnYuan commented Aug 26, 2016

this pull request may help.

@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

4 participants
@zhigang1992 @AnYuan @valheru7 and others