- 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.
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- AngularJS Testing Cookbook
- Learning ASP.NET Core 2.0
- Mastering Yii
- PySide GUI Application Development(Second Edition)
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Emgu CV Essentials
- Python:Deeper Insights into Machine Learning
- 新印象:解構UI界面設計
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- 實戰Python網絡爬蟲
- 你真的會寫代碼嗎
- Python 3快速入門與實戰
- Mastering Machine Learning with scikit-learn