Enable ARCore in your iOS projects.
ARCore requires a deployment target of 12.0 or higher.
Install the ARCore SDK for iOS
Specify the ARCore SDK for iOS in your
Podfile to integrate it into your Xcode project:
target 'YOUR_APPLICATION_TARGET_NAME_HERE' platform :ios, '12.0' pod 'ARCore/SUBSPEC_NAME_HERE' ~> VERSION_HERE
Run the following command to install it:
$ pod install
Use Swift Package Manager
Starting with the 1.36.0 release, ARCore officially supports installation via Swift Package Manager:
- Go to File > Add Packages and enter the package URL:
- Set the Dependency Rule to be Up to Next Minor Version and select the latest release of ARCore.
- Select the desired ARCore libraries to include. Libraries can also be added later via Build Phases > Link Binary With Libraries.
- Add the flag
-ObjCto Other Linker Flags. It is recommended to set Other Linker Flags to
- Make sure that the Enable Modules and Link Frameworks Automatically build settings are set to Yes, because ARCore relies on auto-linking.
- Make sure that Enable Bitcode is set to No, because ARCore binaries do not contain bitcode.
Create a Google Cloud project and enable the ARCore API
Before you can start using the ARCore Cloud Anchor API or the ARCore Geospatial API, you must first enable the ARCore API in a new or existing Google Cloud Platform project.
You must enable the ARCore API in your Google Cloud Project. If you need to create the project, do the following:
Enter an appropriate Project name, and choose a location for it.
In the sidebar, select APIs & Services, then Library.
Search for the ARCore API, select it, and click Enable.
Comply with the User Privacy Requirements
Make sure that your app complies with ARCore's User Privacy Requirements.