Log in or register to post comments

Problem porting an Android app to iOS, no camera preview

March 13, 2016 - 4:41pm #1

Hello,

I've developed an app for Android with Unity 5.2.3f1 and Vuforia 5.0.10, and I'm trying to port it to iOS.

Installed Unity 5.2.3f1 on a Mac, copied my code there and switched platform, installed Xcode 7.2.1, tested on an iPad.

App runs, but when I activate the ARCamera, camera preview is black screen. App continues to work, but no camera preview.

Then I installed the sample code ImageTracker 5.0.10, on Mac, with the same configuration, deployed on the iPad, and it works (so it's clear that the issue is in my code).

I'm very new to Mac and iOS development, any idea of why camera preview in my app works on Android and not in iOS? how can I debug the code? 
I built the iOS code from Unity, opened in XCode and deployed from there, but the only debug output I can see is in XCode console (and it seems very similar to the output og ImageTarget sample, that works).
Is there a way to see the Debug.Log of Unity?

Thanks!

 

Problem porting an Android app to iOS, no camera preview

March 15, 2016 - 3:55am #3

Thanks for the debug info.

Any suggestion for the no camera preview issue?
I just loaded my working android project in  Unity on mac, switched platform, delpoyed it and it works, except for the camera preview missing.

Is there something else I am supposed to do to enable Vuforia on a iOS project?

Problem porting an Android app to iOS, no camera preview

March 14, 2016 - 1:13pm #2

mdurli wrote:

Is there a way to see the Debug.Log of Unity?

In Xcode, choose "Window -> Devices" and click up-arrow at bottom left of right hand pane.

https://developer.apple.com/library/ios/qa/qa1747/_index.html

Log in or register to post comments