Log in or register to post comments

Xcode 4.2 problem

January 8, 2012 - 9:18am #1

I'm using Unity 3.4.0f5, xcode 4.2, iTouch 4 IOS 5.0.1, and 1.5.3 beta1

I'm building the imagetargets example and I get 2 warnings in xcode on AppController.mm

/Users/jon/AR1/build3/Classes/AppController.mm:462:10: warning: enumeration values 'kScreenOrientationUnknown', 'autorotation', and 'kScreenOrientationCount' not handled in switch [-Wswitch-enum,3]

/Users/jon/AR1/build3/Classes/AppController.mm:892:18:{892:18-892:29}: warning: incompatible pointer types passing 'UIView *' to parameter of type 'EAGLView *' [-Wincompatible-pointer-types,3]

The build succeeds but nothing happens when I point the device at a marker

EDIT: Switched to 1.0.0 and now the teapot wants to appear

Re: Xcode 4.2 problem

January 9, 2012 - 7:40pm #2

Those warnings shouldn't cause a problem, they're a known Unity issue: http://forum.unity3d.com/threads/114406-How-to-get-rid-of-the-Warnings-in-Xcode-(Semantic-Issue)

Could you provide the rest of the log? Were the datasets loaded successfully, and can you see the target names (e.g. stones and chips)?

In Unity, look at the DataSetLoadBehaviour on the ARCamera to see which datasets should be loaded and activated.

- Kim

Log in or register to post comments