Log in or register to post comments

Error with new version of xcode, unity plugin

March 19, 2013 - 4:42pm #1

 

It is saying surface isn't declared. The application was working fine until I upgraded xcode. I included the problem area of code. I use unity if that helps solve the issure.

 

 

- (void) applicationWillResignActive:(UIApplication*)application

{

    printf_console("-> applicationWillResignActive()\n");

UnityPause(true);

PresentSurface(&_surface);

QCARUnityPlayer::getInstance().QCARPause(true);

 

    _didResignActive = YES;

}

Error with new version of xcode, unity plugin

April 25, 2013 - 2:20am #8

Is there anyone has solved this problem?

 

Well, if you read below the answer is yes.

You need to upgrade to the latest version of the Vuforia SDK and make sure that there are no old components present.

Take a backup and then follow the steps in the migration guide:

https://developer.vuforia.com/resources/dev-guide/migrating-your-unity-project

 

N

Error with new version of xcode, unity plugin

April 25, 2013 - 2:07am #7

I'm using Xcode 4.6.2 and I got the same problem. Is there anyone has solved this problem?

Error with new version of xcode, unity plugin

March 25, 2013 - 3:57am #6

Excellent.

Glad I could help :)

N

Error with new version of xcode, unity plugin

March 24, 2013 - 9:38pm #5

Thank you that was indeed the problem. 

 

I didn't realise there was a new unity version of it!!!!!

Error with new version of xcode, unity plugin

March 20, 2013 - 3:52am #4

Looking at the function you supplied, it ought to be as below:

 

- (void) applicationWillResignActive:(UIApplication*)application

{

    printf_console("-> applicationWillResignActive()\n");

    UnityPause(true);

    QCARUnityPlayer::getInstance().QCARPause(true);

 

    _didResignActive = YES;

}

...which makes me think there is some confusion or clash with the versions of Unity Vuforia Extension.

Make sure you have the latest one and ensure there are no old versions or components present.  

 

The key here is the PostProcessBuildPlayer which updates various file to complete the Unity/Vuforia integration - this  is under Assets/Editor.  

The latest version does not write out PresentSurface(&_surface) so please check as described.

 

HTH

N

 

 

 

 

Error with new version of xcode, unity plugin

March 19, 2013 - 6:35pm #3

after rolling back xcode, no luck.

 

So i rolled back unity to 4.0.1 from 4.1 and fixed. But how do i get it to work with 4.1?

Error with new version of xcode, unity plugin

March 19, 2013 - 5:12pm #2

I think it is cause i went from 4.6 to 4.6.1 for xcode but I really need to get this to work :(

Log in or register to post comments