我可以用 Xcode < 6 编译 Swift 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24018030/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I compile Swift with Xcode < 6?
提问by Jimmy C
I would like to try out Swift, but currently don't have an Apple developer 's account. Would it be possible to compile and run it without having Xcode 6?
我想试用 Swift,但目前没有 Apple 开发人员的帐户。是否可以在没有 Xcode 6 的情况下编译和运行它?
回答by joemfb
According to https://developer.apple.com/swift/, the only current implementation is the XCode 6 Beta. The language documentation (ebookand online) doesn't mention any alternatives.
根据https://developer.apple.com/swift/,目前唯一的实现是 XCode 6 Beta。语言文档(电子书和在线)没有提到任何替代方案。
As far as I can tell, you have to be a paidmember of an Apple Developer program to get the XCode 6 Beta:
据我所知,您必须成为 Apple Developer program的付费会员才能获得XCode 6 Beta:
"Sign in with the Apple ID associated with your membership in the iOS Developer Program or Mac Developer Program ..."
“使用与您在 iOS 开发者计划或 Mac 开发者计划中的会员资格相关联的 Apple ID 登录......”
Update:In a departure from past policy, Apple has made the XCode 6 beta available as a free download. See the new Swift blogfor details, or download directly!
更新:与过去的政策不同,Apple 已提供 XCode 6 测试版作为免费下载。详情请查看新的Swift 博客,或直接下载!
回答by Tejasvi Hegde
Wait for release of Xcode 6, which will be available in the Mac App Store. (I am not an authority to say this, but since Xcode 5 is available for free in Mac App Store, Xcode 6 should replace it once it's released)
等待 Xcode 6 的发布,它将在 Mac App Store 中提供。(我无权这么说,但由于 Xcode 5 在 Mac App Store 中免费提供,Xcode 6 一经发布就应该替换它)
Developing in Xcode 5 does not require paid developer account.
在 Xcode 5 中开发不需要付费的开发者帐户。
From Wikipedia:
来自维基百科:
Xcode 4.1 was made available for free on July 20, 2011 (the day of Mac OS X Lion's release) to all users of Mac OS X Lion on the Mac App Store
Xcode 4.1 于 2011 年 7 月 20 日(Mac OS X Lion 发布之日)免费提供给 Mac App Store 上的所有 Mac OS X Lion 用户
Annual fee of $99 or £79 will give access to beta releases and provides access to App Store to release your apps.
年费 99 美元或 £79 即可访问测试版并提供访问 App Store 以发布您的应用程序的权限。