【问题标题】:The provided configuration is not supported on this device此设备不支持提供的配置
【发布时间】:2020-05-28 17:35:18
【问题描述】:

我有 Iphone 7,正在开发像 tiktok 这样的 3D 面部过滤器,但每当我从 xcode 在应用程序上运行时,它会显示错误 The provided configuration is not supported on this device,并且只显示黑屏

【问题讨论】:

  • 你使用的是哪个框架?
  • @Frankenstein 正在使用 ARKit 和 RealityKit
  • 您设备上的操作系统是什么?
  • 它在 iPhone 和 MacOS 上的 13.5 正在运行最新版本
  • 您使用的是真正的 iphone 7 和 ios 13.5 对吗?不是模拟器?

标签: ios swift augmented-reality arkit realitykit


【解决方案1】:

您无法在 iPhone 7 上使用所有 ARKit 功能,某些功能至少需要 A12 处理器,甚至更高。例如:在 iPhone 7 上,您无法使用人物遮挡、身体跟踪、同时 3 人脸检测或场景重建等功能。

请记住:您必须始终检查ifguard 声明是否支持当前设备上的功能:

guard let config = arView.session.configuration as? ARWorldTrackingConfiguration
else { 
    print("You can't run this config on this device.") 
}

guard ARWorldTrackingConfiguration.supportsFrameSemantics(.personSegmentationWithDepth)
else { 
    print("People Occlusion isn't supported here.") 
}

config.frameSemantics.insert(.personSegmentationWithDepth)

arView.session.run(config)

【讨论】:

    猜你喜欢
    • 2022-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-04
    • 1970-01-01
    • 2018-06-11
    • 2015-03-11
    • 1970-01-01
    相关资源
    最近更新 更多