Note: This can add up to 5GB to install the needed components (including XCode and iOS build tools)
- Install XCode from the App store.
- Open your Unity AR project if not already open.
- Go to File > Build Settings
- Click on iOS
- 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!
- Once downloaded for good measure quit and restart Unity and go back to File > Build Settings..
- Click Player Settings... button and look in the PlayerSettings Inspector in Unity
- Go to XR Settngs and click to turn on Vuforia Augmented Reality.
- Now go to Other settings and go to Bundle Identifier
- enter your com.yourAppleId.yourAppNameThatYouMadeUp
- Turn off 'Automatically Sign'
- Back in Build Settings, click to Switch Platform and wait for it to import stuff
- Now Click to Build and Run. Give it a name and save it somewhere (not inside your Unity project folder)
- Plug in your phone to your computer. On phone, click to Trust and type in your ID, etc
- On your computer, click to Accept Unity wants to be able to access (launch Xcode)
- If first time opening XCode, click to accept license agreement. You will have to type in password.
- XCode will ask to install additional debugging tools. Click to accept installing.
- In the file selector on left, click on the project name (or maybe its default name)
- You may be prompted to unlock phone. If so, type in password.
- Click kon project name, check bundle identifier matches.
- CLick to turn on Automatic Manage Signing.
- Click to add account. Sign in with your apple ID.
- Click on Team. Click to accept certificiation or manage certificates if not already set. THen click the PLUS sign and choose iOS Development.
- Close the pop-up and click Team and choose your personal team name (your apple id).
- Underneath, choose to delpoy to iPhone or iPad.
- In top left of XCode, click the PLAY button (which compiles our code) and wait. There is a status bar in the top middle.
- It should now deploy to your phone. It may prompt you to click trust or type in your password.
- You will see an app icon on your phone. If you click to launch it will give you a security error. Click to cancel.
- Open the Settings app. Click on Device management and click on the icon. Now choose "trust"
- You can now open the app on your phone.
- Congratulations. You now have an app that only works on your phone.