官术网_书友最值得收藏!

Building Hello World in ARKit

The first thing we need to do after we open the UnityARKitScene is to set up the build settings:

  1. Click on Build Settings and select Player Settings.
  2. 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:
  1. Build the UnityARKitScene for iOS only. Run Xcode in Debug mode.
  2. Only the Development Build checkbox should be checked; everything else should be left as default.
  3. Click Build. I will save the file as iOSTest in my data drive within a folder called iOS:
  1. Building should not take very long at all, perhaps around two minutes for a first build.
  2. The next thing we want to do is open the folder we saved the project in and open the .xcodeproj file in Xcode:
  1. Let's take a look at the Base project you will see in Xcode:

  1. The first thing we want to check is the Identity tab to make sure that these settings are the same as in Unity3D:
  1. Now, we need to look at the Signing subsection:
  1. 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:
  1. 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:
  1. Click on Build Settings at the top, as there are a few settings we need to change here as well.
  2. In Architectures, ARCHS for iPhone should be set to Standard. SDKROOT should be Latest iOS (iOS 11.2). SUPPORTED_PLATFORMS should be iOS:
  1. Next up, scroll down to look at signing, and the values should be already set to the correct ones:
  1. Now, click on Product and Build:
  1. The build should have completed successfully with roughly 47 warnings, which is normal:
  1. 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:
  1. 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:
  1.  Click on the simulation you want to use, and then build and run the application.

 Congratulations! We have completed this Hello World application.

主站蜘蛛池模板: 壶关县| 拉萨市| 汪清县| 赤峰市| 察隅县| 淮南市| 常宁市| 凤山市| 海林市| 佛山市| 郓城县| 天全县| 永胜县| 赤城县| 南雄市| 桐柏县| 庄河市| 桦甸市| 河北区| 印江| 金秀| 石屏县| 邵东县| 新建县| 赣州市| 安泽县| 玛纳斯县| 乐至县| 秭归县| 岱山县| 崇文区| 遂川县| 满城县| 南宁市| 依兰县| 堆龙德庆县| 翁源县| 高邑县| 三门峡市| 张家口市| 霍山县|