Skip to content

Instantly share code, notes, and snippets.

@lee2sman
Created April 8, 2019 16:44
Show Gist options
  • Save lee2sman/076e5c78b90998fd705f6280d16c8a89 to your computer and use it in GitHub Desktop.
Save lee2sman/076e5c78b90998fd705f6280d16c8a89 to your computer and use it in GitHub Desktop.
Compile a Vuforia Unity app for iOS and mount it on your phone or ipad

compiling Unity - Vuforia AR app build for iOS

Note: This can add up to 5GB to install the needed components (including XCode and iOS build tools)

  1. Install XCode from the App store.
  2. Open your Unity AR project if not already open.
  3. Go to File > Build Settings
  4. Click on iOS
  5. Click Open Download page to download the iOS module if not already installed. Afterwards, run the Unity iOS setup installer until you've fully installed. The full install is 3GB!
  6. Once downloaded for good measure quit and restart Unity and go back to File > Build Settings..
  7. Click Player Settings... button and look in the PlayerSettings Inspector in Unity
  8. Go to XR Settngs and click to turn on Vuforia Augmented Reality.
  9. Now go to Other settings and go to Bundle Identifier
  • enter your com.yourAppleId.yourAppNameThatYouMadeUp
  • Turn off 'Automatically Sign'
  1. Back in Build Settings, click to Switch Platform and wait for it to import stuff
  2. Now Click to Build and Run. Give it a name and save it somewhere (not inside your Unity project folder)
  3. Plug in your phone to your computer. On phone, click to Trust and type in your ID, etc
  4. On your computer, click to Accept Unity wants to be able to access (launch Xcode)
  5. If first time opening XCode, click to accept license agreement. You will have to type in password.
  6. XCode will ask to install additional debugging tools. Click to accept installing.
  7. In the file selector on left, click on the project name (or maybe its default name)
  8. You may be prompted to unlock phone. If so, type in password.
  9. Click kon project name, check bundle identifier matches.
  10. CLick to turn on Automatic Manage Signing.
  11. Click to add account. Sign in with your apple ID.
  12. Click on Team. Click to accept certificiation or manage certificates if not already set. THen click the PLUS sign and choose iOS Development.
  13. Close the pop-up and click Team and choose your personal team name (your apple id).
  14. Underneath, choose to delpoy to iPhone or iPad.
  15. In top left of XCode, click the PLAY button (which compiles our code) and wait. There is a status bar in the top middle.
  16. It should now deploy to your phone. It may prompt you to click trust or type in your password.
  17. You will see an app icon on your phone. If you click to launch it will give you a security error. Click to cancel.
  18. Open the Settings app. Click on Device management and click on the icon. Now choose "trust"
  19. You can now open the app on your phone.
  20. Congratulations. You now have an app that only works on your phone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment