Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 322
Randi Avatar asked Oct 29 '25 02:10

Randi


2 Answers

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

Per Apple

the Account Holder of your Apple Developer Program or Apple Developer Enterprise Program can request the entitlement.

Any apps will be distributed through "Apple Business Manager" or privately for "in-house" use only.

like image 145
lorem ipsum Avatar answered Oct 30 '25 14:10

lorem ipsum


You don’t need to be a big company. My friend and I started a two-person company, and I received the required entitlement five days after submitting the Main Camera Access request.

The Apple Developer Program is divided into:

  1. Apple Developer Program with individual identity
  2. Apple Developer Program with organization identity
  3. Apple Developer Enterprise Program

If you already have a company (if you are in mainland China, your business license should state "Limited Liability Company"), you need to:

  1. Apply for a D-U-N-S® Number on Apple’s official website. This is free, and it took me five days to get it (you will need to use your company’s email during the process).
  2. Prepare your company’s website to let Apple understand your business.
  3. Submit an application to register for the Apple Developer Program using your personal Apple ID, and during registration, select “Register as an organization.” It took me five days to complete the registration for the Apple Developer Program.
  4. Create an App ID on the App Store Connect website.
  5. Submit your Main Camera Access request at https://developer.apple.com/go/?id=69613ca716fe11ef8ec848df370857f4. If you are using the Apple Developer Program registered as an individual, this page will be inaccessible to you.
  6. After submitting the request, Apple will review it. I spent five days waiting for the review, and once completed, Apple sent me an entitlement document.
  7. Place the entitlement document in the root directory of your Xcode project, ensuring that the bundle ID used in your project matches the one you used during the request submission. I encountered a minor issue: when adding the Capability, "Main Camera Access" did not appear in the list. I randomly added another Capability and then manually edited the .entitlements file to look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.developer.arkit.main-camera-access.allow</key>
    <true/>
</dict>
</plist>
  1. Restart Xcode a few times, and automatic signing will handle everything for you. (If you haven’t added the Enterprise.license that Apple sent you to the root directory of your project and to the corresponding target, automatic signing will keep complaining). Remember to check that your Bundle Identifier and Team are the same as those used when you submitted the Main Camera Access request. Settings in Xcode
like image 42
闪电狮 Avatar answered Oct 30 '25 15:10

闪电狮



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!