在哪里可以看到CoreLocation的源代码?

Where can I see the source code of CoreLocation?

听说Swift是开源的,我觉得所有的框架都是开源的。但是,我在https://github.com/apple. I can see the source code for Foundation: https://github.com/apple/swift-corelibs-foundation上找不到CoreLocation的源代码,但是找不到CoreLocation。有空吗?

  • CoreLocation 不是开源的,因为它是苹果私有框架(如 UIKit 或 MapKit)的一部分。
  • 只有 Swift 标准库是开源的,就像 Objective-C 一样。

您将能够获得任何标准 swift 库的源代码:http://swiftdoc.org

您还可以访问 swift 编译器的源代码。

TL;DR;否 - 您无法获取 CoreLocation

的源代码