CLLocationCoordinate2D 无法实例化

CLLocationCoordinate2D can't be instantiated

我正在尝试根据从文件中读取的数据创建一些“CLLocation”。第一步是实例化一个“CLLocationCoordinate2D”,以将其馈送到 CLLocation 的初始化程序中。我正在 Playground 中尝试我的想法,这个非常简单的代码会生成运行时错误:

import CoreLocation

let lat = 48.8
let lon = -122.3
let point2D = CLLocationCoordinate2D(latitude: lat, longitude: lon)

错误信息是

error: Execution was interrupted, reason: signal SIGABRT.
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

我对 Swift 编程还很陌生,我不知道如何处理这些。例如,我如何“使用“thread return -x””来做任何事情 谁能告诉我这是怎么回事?

I've tried to attach a picture of the whole playground but can't tell if that is possible

弗兰肯斯坦是对的 - 它一定是一个 Xcode 错误。我将相同的代码放入“真实”程序中,没问题。

刚好发生在我身上。尝试将 import CoreLocation 替换为 import MapKit,这对我的情况有效。