Unity initially explores the ARKit plug-in

       I have not used Mac machines much before, so I encountered a lot of pitfalls in my initial exploration of ARKit. ARKit is a tool produced by Apple that supports AR. To develop iPhone AR apps on Unity, you need a Mac computer.

I initially planned to install an Apple virtual machine on Windows 10, but after following 2/3 of the steps in the online tutorial, I couldn’t continue, so I decisively gave up on this path and requisitioned the Mac used by the HR girl in the department. First, I installed the Unity2017.2 version. Xcode is someone else’s 6.4 version on Baidu Netdisk (at first I didn’t know that I could download the latest version directly from the AppStore). Then I read various tutorials on other people’s Internet and said that I need to use Xcode 9. The above version, so I found a version of Xcode9 from Baidu Netdisk. The Unity online recommendation is version 5.6.1 or above, but when downloading the ARKit plug-in from Unity's store, it prompts that version 5.6.2 or above is supported.

The last version of Unity2017.2 I used, Xcode is the latest version of AppStore 9.2. Finally, the Xcode project was generated from Unity and deployed to IphoneX successfully!

The simple steps are as follows:

1 Start Unity, create a new project, and download the ARKit plug-in in AssetStore ( you need to log in to your own account );

2 As shown in the figure below, then find the otherSetting in PlayerSetting and set the Bundle Identifier to com.



3 Of course, you need to check the Scene to be published in Scenes In Build, and then click Build;

4. Open the generated Unity-generated project in Xcode for real-machine release;

5 You need to log in to an Apple developer account or your own Apple account in Xcode;

6 as shown below:

     

Finally, the release was successful, and you need to go to Settings - General - Device Management - Trust Applications on your phone.

Guess you like

Origin blog.csdn.net/hemiaoyuan1989/article/details/78980401