How-To: Solving Various Issues on iOS AR Developments while using Vuforia + Unity

I’d been confused by various problem when using Vuforia with Unity, to develop AR app for iOS device. Here’s how to solve ’em!

1. App crashes when using Unity (4.5.4, 4.5.5, 4.6) + Vuforia 3.0.9.
Solution:
After building Xcode files, open it, you’ll need to modify the Info.plist.
Click Informaition Property List,there on the right appear a Plus icon, click it.
Type this on Key field:
UIInterfaceOrientation or Initial interface orientation. (They mean the same)
Type this on Value field:
UIInterfaceOrientationPortrait or Portrait (bottom home button)
Screenshot_SetInfoPlist

2. Black screen without camera background when using Unity 5 + Vuforia 4.
Solution:
Click File menu->Build Setting…->Player Setting…
On the Other Setting session of PlayerSetting, switch the Graphics API to Open GL ES 2.0.
The Automatic option may use Metal by default causing the problem. (I’m not sure though.)
Screenshot_SetGraphicsAPI

3. Getting “CodeSign Failed”, cannot export IPA file from Xcode project built by Unity 5 + Vuforia 4.
Solution:
Run Terminal app on Mac. Go into the Xcode project directory by using cd.
e.g.
cd /user/TangoChen/Projects/DemoExports

We’ll build the IPA with Terminal using various commands.

  • Clean
    xcodebuild clean -project Unity-iPhone.xcodeproj -configuration Release -alltargets
  • Archive
    xcodebuild archive -project Unity-iPhone.xcodeproj -scheme Unity-iPhone -archivePath Unity-iPhone.xcarchive
  • Export
    xcodebuild -exportArchive -archivePath Unity-iPhone.xcarchive -exportPath MyIPA -exportFormat ipa

* If your project name isn’t Unity-iPhone, change it to yours.
Then, we’ll get an IPA file called MyIPA.ipa in the project directory.

Some say the solution above somehow does not work well while installing, and the exported ipa cannot be uploaded to App Store.
For a better solution, please read the solution by AlessandroB.

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/vuforia-40-and-unity-50

About TangoChen

Interest driven for tech & music.
This entry was posted in Augmented Reality, Tech. Bookmark the permalink.

6 Responses to How-To: Solving Various Issues on iOS AR Developments while using Vuforia + Unity

  1. Eric says:

    Excuse me. I meet the same issue as the 3rd one. I can export IPA with terminal command. However, after I uploaded the IPA to AppStore, I was told the signature is invalid by apple. I have chosen the correct code signing identity in xCode Project. Can you give me some advice? Thanks!

  2. Ron Martin says:

    TangoChen: Thanks of your help on this… I was really stuck on the coding issue with Vuforia. I was able to create my adHoc version in this manner.
    What do you do to submit it with apple if you get this error?

    thanks again
    ron

    • TangoChen says:

      Hi Ron, are you using the latest version of Vuforia plugin and Unity 5? You can try using the latest ones if not.
      The solution here for CodeSign Failed can only be used to export ipa files but not make it available for uploading to App Store.
      I haven’t done some AR developments for a while and didn’t try submitting it to App Store so sorry that I can’t provide more information.
      When I got various issues that seem unsolvable I just wait for official updates so again I recommend you to use latest Vuforia and that should be solved. 🙂

  3. Hi Everyone,

    I have developed an AR app for iOS using Vuforia, but confused how to upload it on Apple app store. Please anybody give me any solutions.
    Can i submit my app to app store using Vuforia?

  4. lakhani1213 says:

    Please try this solution this is work for me.

    In unity Player Setting >> other settings>> Memoryless Depth set to unused.

    Vuforia work fine in android when build to IOS I am facing the black screen Issue I solved this using above settings.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.