[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eEnable ARCore in your iOS projects by installing the ARCore SDK for iOS using CocoaPods or Swift Package Manager.\u003c/p\u003e\n"],["\u003cp\u003eARCore requires a minimum deployment target of iOS 12.0 and building with iOS SDK version 15.0 or higher.\u003c/p\u003e\n"],["\u003cp\u003eBefore using Cloud Anchors or Geospatial API, create a Google Cloud Project and enable the ARCore API.\u003c/p\u003e\n"],["\u003cp\u003eEnsure your application adheres to ARCore's User Privacy Requirements.\u003c/p\u003e\n"]]],[],null,["# Enable AR in your iOS app\n\nEnable ARCore in your iOS projects.\n\nPrerequisites\n-------------\n\nARCore requires a deployment target of 12.0 or higher.\n\nInstall the ARCore SDK for iOS\n------------------------------\n\n| **Note:** ARCore binaries no longer contain bitcode, which is deprecated with Xcode 14. You must disable bitcode for your project if you are building with Xcode 13.\n\nYou must build your app with iOS SDK version 15.0 or higher. The SDK can be installed using either [CocoaPods](https://cocoapods.org/) or the [Swift Package Manager](https://www.swift.org/package-manager/) (currently in beta).\n\n### Use CocoaPods\n\nSpecify the ARCore SDK for iOS in your `Podfile` to integrate it into your Xcode project: \n\n target 'YOUR_APPLICATION_TARGET_NAME_HERE'\n platform :ios, '12.0'\n pod 'ARCore/SUBSPEC_NAME_HERE' ~\u003e VERSION_HERE\n\nValid ARCore subspecs are `Geospatial` for the [Geospatial API](/ar/develop/geospatial),\n`CloudAnchors` for the [Cloud Anchor API](/ar/develop/cloud-anchors), and `AugmentedFaces` for [Augmented Faces](/ar/develop/augmented-faces).\n\nRun the following command to install it: \n\n pod install\n\n### Use Swift Package Manager\n\nStarting with the 1.36.0 release, ARCore officially supports installation via [Swift Package Manager](https://swift.org/package-manager/):\n\n1. Go to **File** \\\u003e **Add Packages** and enter the package URL: `https://github.com/google-ar/arcore-ios-sdk`\n2. Set the **Dependency Rule** to be **Up to Next Minor Version** and select the latest release of ARCore.\n3. Select the desired ARCore libraries to include. Libraries can also be added later via **Build Phases** \\\u003e **Link Binary With Libraries**.\n4. Add the flag `-ObjC` to **Other Linker Flags** . It is recommended to set **Other Linker Flags** to `$(inherited) -ObjC`.\n5. Make sure that the **Enable Modules** and **Link Frameworks Automatically** build settings are set to **Yes**, because ARCore relies on auto-linking.\n6. Make sure that **Enable Bitcode** is set to **No**, because ARCore binaries do not contain bitcode.\n\nCreate a Google Cloud project and enable the ARCore API\n-------------------------------------------------------\n\nBefore you can start using the ARCore Cloud Anchor API or the ARCore Geospatial\nAPI, you must first set up the\n[**ARCore API**](/ar/develop/authorization?platform=ios) in a new or existing\nGoogle Cloud project.\n\nComply with the User Privacy Requirements\n-----------------------------------------\n\nMake sure that your app complies with [ARCore's User Privacy Requirements](/ar/develop/privacy-requirements).\n\nNext steps\n----------\n\n- Learn how to [configure an ARCore session in iOS](/ar/develop/ios/session-config).\n- Check out the [iOS reference documentation](/ar/reference/ios)."]]