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

Needs Grand Renaming rules applied to work with Xcode 8 & Swift 3 #59

Open
BarkCarver opened this issue Sep 15, 2016 · 2 comments
Open

Comments

@BarkCarver
Copy link

Now that Xcode 8 & Swift 3 have been released, I want to download all the WWDC 2016 Content but the wwdc2016.swift script doesn't work with Swift 3 and the Grand Renaming. I know all the serious developers downloaded this content a long time ago but I'm a NOOB with Swift so it would really help to have access to all the WWDC 2016 content. Thanks - Russell

Examples of errors output when I run the script:

./wwdc2016.swift:53:42: error: 'NSURLSessionDownloadDelegate' has been renamed to 'URLSessionDownloadDelegate'
class DownloadSessionManager : NSObject, NSURLSessionDownloadDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
URLSessionDownloadDelegate
./wwdc2016.swift:60:21: error: 'dispatch_semaphore_create' has been replaced by 'DispatchSemaphore.init(value:)'
let semaphore = dispatch_semaphore_create(0)
^~~~~~~~~~~~~~~~~~~~~~~~~

@MarcusJohnson91
Copy link

MarcusJohnson91 commented Sep 21, 2016

It's easiest to go here and install the 2.2 package.

https://swift.org/download/#older_release_branches

Edit: This doesn't work with Xcode 8, the version number is wrong

@jriskin
Copy link

jriskin commented Sep 21, 2016

Easy solution is to change the toolchain with xcrun. Modify the first line of the script...
e.g.
#!/usr/bin/env xcrun --toolchain "com.apple.dt.toolchain.Swift_2_3" swift

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

3 participants