AR 会话失败。一张或多张参考图片的尺寸无效
The AR Session Failed. One or more reference images have an invalid size
Xcode:10.1 测试版
Swift: 4
增强现实套件:2.0
开始我们的 AR 会话时,我们 运行 进入了:
The AR Session failed.
Invalid reference image.
One or more reference images have an invalid size: [file name].
Make sure that all reference images are greater than 100 pixels and have a positive physical size in meters.
我们检查过:
- 我们的参考图像大于 100 像素
- 我们的参考图像具有正物理尺寸(以米为单位)
解决方案 1
表示:
the error message is a bit missleading. Try setting your Deployment Target (in Unity or later in Xcode) to 12.0. This fixes the issue for me.
这解决了我们的问题。
解决方案 2
此外,让我们的部署目标保持原样 (10.0
) 并确保参考图像是 .jpg
也为我们解决了这个问题。
在以上所有尝试和失败之后,在我的情况下,经过大量的反复试验后,我意识到问题的发生是因为我在正常资产中有与参考图像完全相同的图像和相同的文件名目录(即副本,在黄色文件夹中)。将参考图像的名称更改为不同的名称修复了它。
Xcode:10.1 测试版 Swift: 4 增强现实套件:2.0
开始我们的 AR 会话时,我们 运行 进入了:
The AR Session failed.
Invalid reference image.
One or more reference images have an invalid size: [file name].
Make sure that all reference images are greater than 100 pixels and have a positive physical size in meters.
我们检查过:
- 我们的参考图像大于 100 像素
- 我们的参考图像具有正物理尺寸(以米为单位)
解决方案 1
表示:
the error message is a bit missleading. Try setting your Deployment Target (in Unity or later in Xcode) to 12.0. This fixes the issue for me.
这解决了我们的问题。
解决方案 2
此外,让我们的部署目标保持原样 (10.0
) 并确保参考图像是 .jpg
也为我们解决了这个问题。
在以上所有尝试和失败之后,在我的情况下,经过大量的反复试验后,我意识到问题的发生是因为我在正常资产中有与参考图像完全相同的图像和相同的文件名目录(即副本,在黄色文件夹中)。将参考图像的名称更改为不同的名称修复了它。