Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

iOS Cloud Build - Provisionsing Profile doesn't match entitlements

Discussion in 'Unity Build Automation' started by That_Mason_Guy, Sep 17, 2021.

  1. That_Mason_Guy

    That_Mason_Guy

    Joined:
    Jun 14, 2021
    Posts:
    2
    Whenever I try to build an iOS app through Cloud Build I alway get the same error, listed below. does anyone know how to fix this??

    error: Provisioning profile "Tempest Studios - Flappy bat" doesn't match the entitlements file's value for the com.apple.developer.ubiquity-kvstore-identifier entitlement. (in target 'Unity-iPhone' from project 'Unity-iPhone')

    This shouldn't be that hard, but it seems not that many people have the same issue.
     
  2. BlindArcade

    BlindArcade

    Joined:
    Nov 17, 2022
    Posts:
    1
    Where you able to fix that?
     
  3. phuong_unity

    phuong_unity

    Unity Technologies

    Joined:
    Apr 25, 2018
    Posts:
    52
    Hi @That_Mason_Guy. If you are only getting this problem when building on Cloud Build, and you are able to archive and export a binary locally, please only a support ticket so the support team can investigate the cause of the problem.
     
  4. VoxelMatt

    VoxelMatt

    Joined:
    Apr 22, 2015
    Posts:
    39
    Putting this here incase anyone else has the same issue...

    The problem for me was
    fastlane
    which is used by Unity Cloud Build has trouble unpacking the
    $(TeamIdentifierPrefix)
    from your entitlements file.

    I just replaced this line in my app.entitlements
    <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
    with my actual team identifier and bundle identifier. so like:
    <string>ABC01234DE.com.company.appname</string>


    That seemed to work fine.

    https://forum.unity.com/threads/uni...ease-and-build-infrastructure-changes.567382/ this thread discusses the issue, but involves a much more complicated solution than the one I mentioned above.