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.
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)
2. Black screen without camera background when using Unity 5 + Vuforia 4.
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.)
3. Getting “CodeSign Failed”, cannot export IPA file from Xcode project built by Unity 5 + Vuforia 4.
Run Terminal app on Mac. Go into the Xcode project directory by using cd.
We’ll build the IPA with Terminal using various commands.
xcodebuild clean -project Unity-iPhone.xcodeproj -configuration Release -alltargets
xcodebuild archive -project Unity-iPhone.xcodeproj -scheme Unity-iPhone -archivePath Unity-iPhone.xcarchive
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.