2015-06-19 98 views
2

我可以使用Unity 5和xCode 6構建和運行我的Cardboard應用程序,它在我的iPhone 5上運行良好。但是,當我將項目交給另一個開發人員時,他嘗試嘗試下面的錯誤建立。他使用的是xCode 7 beta和iPhone 6.我認爲這個問題是因爲他使用了xCode 7 beta。他在下面的日誌中添加了評論。xCode - Google Cardboard構建失敗

- 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設置爲自動。

回答

1

我設法實現這個功能的唯一方法是取消選中Automatic graphics API,並將Metal放在OpenGLES2下面。 Cardboard SDK似乎有些東西與Metal渲染管道不兼容。

這並不理想,但它應該有望獲得VR模式的工作!