Swift语言标头可以在线获得吗? [英] Are the Swift language headers available online?

查看:91
本文介绍了Swift语言标头可以在线获得吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swift标头在任何地方都可用吗?我想更深入地研究某些课程,但目前我没有Mac.还有另一种查看Swift语言源文件的选项吗?

Are the Swift headers available anywhere? I'd like to dig a bit deeper into some of the classes, but I don't have my Mac with me at the moment. Is there another option to view the Swift language source files?

推荐答案

目前,在Xcode6 Beta中,快速的头文件"并不是真正的头文件. (即它们不存在于磁盘上的纯文本格式.)它们似乎是由Xcode即时从Xcode捆绑包中的*.swiftmodule*.swiftdoc文件生成的.

At the moment, in the Xcode6 beta, the swift "header files" aren't really header files. (i.e. they don't exist on disk in plain text format.) They appear to be getting generated on the fly by Xcode from the *.swiftmodule and *.swiftdoc files in the Xcode bundle.

类似地,Objective-C库的快速声明似乎是即时自动生成的.对评论者:我没有看到任何迹象表明Apple预先提供的Objective-C库已经被迅速重写.它们的头文件只是被Xcode快速地重写为快速声明.

Similarly, the swift declarations for Objective-C libraries appear to be being auto-generated on the fly. To the commenter: I've seen no indication that any of the pre-existing Apple-provided Objective-C libraries have been re-written in swift. Their header files are just being rewritten by Xcode on the fly as swift declarations.

有人可以简单地生成这些文件,然后将其复制并粘贴并放置在Web上的某个位置,但是我没有看到它,Apple似乎也不会以这种方式发布它们. (注意:这几乎肯定会违反他们的保密协议.)

Someone could trivially generate these files and copy and paste them and put them on the web somewhere, but I haven't seen it, and Apple doesn't appear to be publishing them in that way. (NB: This would almost certainly be a violation of their NDA.)

我会说保持警惕"……这可能只是时间问题.

I'd say "keep an eye out"... it's probably only a matter of time.

这篇关于Swift语言标头可以在线获得吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆