• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ios - xCode - Google Cardboard 构建失败

[复制链接]
菜鸟教程小白 发表于 2022-12-13 08:23:18 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我可以使用 Unity 5 和 xCode 6 构建和运行我的 Cardboard 应用程序,它在我的 iPhone 5 上运行良好。但是,当我将项目交给另一个开发人员时,他在尝试构建时收到以下错误。他正在使用 xCode 7 beta 和 iPhone 6。我认为问题是因为他使用的是 xCode 7 beta。他在下面的日志中添加了评论。

- Completed reload, in  0.055 seconds
Built-in distortion correction disabled. Causes: [Requires OpenGL]

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

Built-in UI layer disabled. Causes: [Requires OpenGL]

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

2015-06-12 15:26:59.290 cardboardTest[12562:2094875] Unbalanced calls to begin/end appearance transitions for <UnityLandscapeRightOnlyViewController: 0x16e0a090>.
2015-06-12 15:27:07.805 cardboardTest[12562:2094875] Rotation check?! 3
2015-06-12 15:27:10.807 cardboardTest[12562:2094875] popping automatically
2015-06-12 15:27:10.817 cardboardTest[12562:2094875] rotation station

>>>> The below is logged just before the crash, after the stardust finishes circling, after which Aulani video is supposed to start. <<<

Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 10.548125 ms
Built-in distortion correction disabled. Causes: [Requires OpenGL] <<<< OpenGLES.framework is included in the project.

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

Built-in UI layer disabled. Causes: [Requires OpenGL]

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)


Unloading 25 unused Assets to reduce memory usage. Loaded Objects now: 621. <<<< Closed any application running in the background on my iPhone, just to free up available memory. No difference.
Total: 3.234458 ms (FindLiveObjects: 0.401500 ms CreateObjectMapping: 0.034583 ms MarkObjects: 0.550083 ms  DeleteObjects: 2.247291 ms)
# #

在 Unity 中,我将图形 API 设置为自动。



Best Answer-推荐答案


我设法让它工作的唯一方法是取消勾选自动图形 API,并将 Metal 放在 OpenGLES2 之下。 Cardboard SDK 似乎有些东西不适用于 Metal 渲染管道。

这并不理想,但应该有望让 VR 模式正常工作!

关于ios - xCode - Google Cardboard 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30940544/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap