首页 > 解决方案 > RealityKit - 内部错误导致启动延迟 2 秒

问题描述

我有一个 Swift RealityKit 项目,当我加载场景时,Xcode 会延迟输出以下消息,这些消息与我编写的任何代码都无关。

我的应用程序运行良好,除了 Xcode 抱怨这些未知事物的 2 秒。

任何人都可以阐明我可能打开的导致这种情况的原因吗?我只需要杀死任何延迟我启动的东西

021-01-21 14:33:18.994011+0000 AppName[1396:516729] DEFAULTS: (intermediatePathOverride)=>(<null>)
2021-01-21 14:33:18.994808+0000 AppName[1396:516729] DEFAULTS: (logLevel)=>(3)
2021-01-21 14:33:18.994991+0000 AppName[1396:516729] DEFAULTS: (jasperColorStillsRunCorrection)=>(1)
Warning (secondary thread): in AppendProperty at line 859 of sdf/path.cpp -- Can only append a property 'preliminary:anchoring:type' to a prim path (/)
Warning (secondary thread): in AppendProperty at line 859 of sdf/path.cpp -- Can only append a property 'triggers' to a prim path (/)
2021-01-21 14:33:19.303829+0000 AppName[1396:516840] [Graphics] Failed to find reflection for buffer clusterIndexTable

而有时

2021-01-21 14:33:17.230591+0000 AppName[1396:516500] Errors found! Invalidating cache...
2021-01-21 14:33:17.391737+0000 AppName[1396:516500] fopen failed for data file: errno = 2 (No such file or directory)
2021-01-21 14:33:17.391784+0000 AppName[1396:516500] Errors found! Invalidating cache...
Json Parse Error line 22: Json Deserialization; unknown member 'EnableGuidedFilterOcclusion' - skipping.

谢谢,克里斯

标签: xcoderealitykit

解决方案


我遇到了类似的问题,问题出在我的模型上。我的解决方案是将我的模型更改为有效的.usdz文件。你可以在这里找到一些模板模型来检查它是否有效https://developer.apple.com/augmented-reality/quick-look/


推荐阅读