skip to Main Content

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

2

Answers


  1. 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

    Login or Signup to reply.
  2. 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
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search