Search Unity

UCB Build terminates itself after boot due to iCloud

Discussion in 'Unity Build Automation' started by RaceCat, Mar 28, 2017.

  1. RaceCat

    RaceCat

    Joined:
    Nov 15, 2016
    Posts:
    11
    Hey all,

    I'm having a problem with my UCB build and integrating iCloud. The build itself is successful and launches just fine on my iOS device but after the loading screen it immediately terminates itself. When I look at the console it displays this:

    *** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services'

    Is there an easy way to enable iCloud services through Unity/UCB? I can make builds locally using Unity + Xcode and it works fine. Only when going through UCB does it no longer have the proper entitlements.

    I'm building using the latest compatible xcode and am using Unity 5.5.1f1

    Thanks for any insight into solving this issue!

    Chris
     
  2. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    Hello,

    Could you please confirm if these issues happen when building locally or not?

    Does this happen when you build locally from a fresh checkout?

    - Sophia
     
  3. RaceCat

    RaceCat

    Joined:
    Nov 15, 2016
    Posts:
    11
    Hey Sophia,

    So locally, inside the Unity Editor, there is no error of any kind. If I try and build it for an iOS device through xcode, I see the same error unless I enable cloudkit inside the capabilities tab. This is the step I'm unable to solve through UCB.