Search code examples
xcodeprovisioning-profilevisionoscode-signing-entitlements

Provisioning profile doesn't include the com.apple.developer.arkit.main-camera-access.allow entitlement


I was using my "Personal Team" for automatic signing. I was able to run on my device without any issue. then I added com.apple.developer.arkit.main-camera-access.allow into my project.Entitlements file and my project Target's -> Build Settings -> Signing -> Code Signing entitlements has set to MyProject/MyProject.entitlements. But now I cannot auto signing and I'm getting

Provisioning profile doesn't include the com.apple.developer.arkit.main-camera-access.allow entitlement.

What can I do to resolve this? Please help me.

Thanks


Solution

  • Accessing the camera in visionOS requires an enterprise entitlement that must be requested.

    Enterprise APIs are eligible for business use only, and you can only distribute apps that you develop with the Enterprise APIs privately as proprietary in-house apps or custom apps using Apple Business Manager.

    https://developer.apple.com/documentation/visionOS/building-spatial-experiences-for-business-apps-with-enterprise-apis