源文件中的编辑器占位符

时间:2017-07-25 14:54:26

标签: swift

遵循此ARKit教程 https://www.youtube.com/watch?v=R8U8rGdMop4

但是得到了

  

源文件中的编辑器占位符

以下代码中的

错误(第2行)。 Swift中是否有变化导致这种变化?

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    let configuration = ARWorldTrackingSessionConfiguration()
    sceneView.session.run(configuration)
    addObject()
}

1 个答案:

答案 0 :(得分:2)

您的文件中有一个占位符,这意味着您会看到一个灰色或蓝色的块,它会说出一些值,表示您需要使用该值替换占位符。

The gray blocks in this image are placeholders.

Xcode也可能只是愚蠢,所以尝试清理项目,然后重新运行。

相关问题