Xcode 6 测试版 : I'm not able to select Swift as language

标签 xcode macos cocoa swift

我创建了一个新项目并选择了 Cocoa App,然后按下一步,发现 Objective C 是唯一可用的语言。我点击了帮助| Xcode 菜单中有什么新功能,它说 swift 语言和 lang 支持是新功能。

这里出了什么问题?

更新:我从 Apple 网站更新了产品。尽管 Xcode 附带的文档说 Swift 是此版本的一部分,但为什么我不能使用 swift?顺便说一句,Xcode版本是:版本6.0(6A313)。

最佳答案

the Swift Blog 中所述:

Today is the GM date for Swift on iOS. We have one more GM date to go for Mac. Swift for OS X currently requires the SDK for OS X Yosemite, and when Yosemite ships later this fall, Swift will also be GM on the Mac. In the meantime, you can keep developing your Mac apps with Swift by downloading the beta of Xcode 6.1.

所以,您需要 Xcode 6.1,而不是 6.0。根据download page目前,6.1 可在 Yosemite Developer Preview 或 Mavericks 上运行。

关于Xcode 6 测试版 : I'm not able to select Swift as language,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25931469/

相关文章:

cocoa - 通过 AuthorizationExecuteWithPrivileges 运行 sh 脚本

macos - productsign mac .pkg 安装程序

objective-c - 从 cocoa mac osx 的根文件夹中删除文件

objective-c - 通过 Objective C 代码“显示包内容”

ios - Xcode 命令/usr/bin/codesign 失败,退出代码 1 : errSecInternalComponent

iphone - NSUser 默认应用程序设置不存储初始值

html - CSS 在 Windows 上的显示与 Mac 不同

Objective-C NSRegularExpressions,查找字符串中数字的第一次出现

ios - 自定义单元格未出现在表格 View 中

ios - 在tableView中点击不同的行后在collectionView中显示不同的数组