- Unity 2018 Augmented Reality Projects
- Jesse Glover
- 439字
- 2021-08-05 10:37:31
Building Hello World in ARKit
The first thing we need to do after we open the UnityARKitScene is to set up the build settings:

- Click on Build Settings and select Player Settings.
- We want to scroll down to Identification. The Bundle Identifier should be set to com.unity.ARKitHelloTutorial, Version to 0.1, and Build to 10.1. The Automatically Sign checkbox should be checked. Leave the Automatic Signing Team ID settings blank:

- Build the UnityARKitScene for iOS only. Run Xcode in Debug mode.
- Only the Development Build checkbox should be checked; everything else should be left as default.
- Click Build. I will save the file as iOSTest in my data drive within a folder called iOS:

- Building should not take very long at all, perhaps around two minutes for a first build.
- The next thing we want to do is open the folder we saved the project in and open the .xcodeproj file in Xcode:

- Let's take a look at the Base project you will see in Xcode:
- The first thing we want to check is the Identity tab to make sure that these settings are the same as in Unity3D:

- Now, we need to look at the Signing subsection:

- We need to make sure to add our Personal Team name to it, which you can get by signing in to your Apple Developer account and clicking on the arrow for the team you want to use:

- Deployment Info is next. The Deployment Target needs to be changed to 11.2. Devices should be set to iPhone only. The Main Interface is LaunchScreen-iPhone.xib:

- Click on Build Settings at the top, as there are a few settings we need to change here as well.
- In Architectures, ARCHS for iPhone should be set to Standard. SDKROOT should be Latest iOS (iOS 11.2). SUPPORTED_PLATFORMS should be iOS:

- Next up, scroll down to look at signing, and the values should be already set to the correct ones:

- Now, click on Product and Build:

- The build should have completed successfully with roughly 47 warnings, which is normal:

- Now, we can build and test in the simulator. What we want to do is change from the iPhone to one of the simulators in the list, so click on the device list next to your iPhone or whatever device you have:

- You will see a big list of devices you want to use. This will range from simulations of devices to the iOS device you have connected to your macOS:

- Click on the simulation you want to use, and then build and run the application.
Congratulations! We have completed this Hello World application.
推薦閱讀
- Mastering Concurrency Programming with Java 8
- JavaScript全程指南
- Visual C++程序設計學習筆記
- Visual Studio 2012 Cookbook
- Getting started with Google Guava
- Learning Selenium Testing Tools with Python
- Python王者歸來
- C語言程序設計實踐教程
- 網(wǎng)站構建技術
- Mastering AWS Security
- CRYENGINE Game Development Blueprints
- R語言:邁向大數(shù)據(jù)之路(加強版)
- Programming Microsoft Dynamics? NAV 2015
- Learning Splunk Web Framework
- MySQL數(shù)據(jù)庫應用實戰(zhàn)教程(慕課版)