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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Step by step process for setting up iOS build

Discussion in 'Unity Build Automation' started by r2k9, Aug 17, 2016.

  1. r2k9

    r2k9

    Joined:
    Aug 17, 2016
    Posts:
    1
    Hi there,

    I am having a heck of a time getting cloud build to work with iOS. I just keep getting the error:

    "Failed to update credentials! undefined".

    No doubt it's because I haven't generated one of the crazy key things correctly on the apple website, but the help text on the setup screen isn't enough to help me sort out what I need to do.

    Is there a step by step document or video anyone knows about?

    I've generated so many keys and profiles and certs and and p12 files that I am about to lose what little hair I have left.

    Thanks for any help.
     
  2. Kevin-HyperHippo

    Kevin-HyperHippo

    Joined:
    Jan 16, 2014
    Posts:
    8
    I'm struggling with this as well. Could something be broken on the Unity Cloud Build end?
     
  3. VISIONSBOX

    VISIONSBOX

    Joined:
    Nov 7, 2014
    Posts:
    14
    Same problem here. I was suspecting it has something to do with a wildcard mobile provisioning file, but couldn't find a solution to this problem.

    The problem seems to be that the API route /credentials/signing/ios returns an error 500 (internal server error).
     
  4. jeff_dude

    jeff_dude

    Joined:
    Jul 18, 2015
    Posts:
    2
    Anybody making any progress here? I'm getting the same error and don't think it has to do with a wildcard provisioning profile. Anybody from Unity Support can you chime in? I've nearly lost all the time I would have saved using Unity Cloud Build trying to figure this out. Thank you.
     
  5. jeff_dude

    jeff_dude

    Joined:
    Jul 18, 2015
    Posts:
    2
    OK I figured out a solution. Don't export your p12 file from keychain access as it says in the unity docs. Instead

    - open xcode
    - go to Preference (cmd+",")
    - click Accounts tab
    - select your team in the bottom right box
    - Click the View Details button
    - Select your "iOS Distribution Signing Identity" in the top window
    - Right click and select "Export"
    - This will prompt you for a password for your p12 file
    - Use this generated p12 file when setting up your credentials
     
    Visartech likes this.
  6. creativewax

    creativewax

    Joined:
    Jan 28, 2015
    Posts:
    22
    Absolute life saver, this just worked first time, been scratching my head on this for the past week as I was getting no errors, it would just hang there and not give me any feedback, this different way of doing your p12 sorts it straight away :)
     
  7. John1515

    John1515

    Joined:
    Nov 29, 2012
    Posts:
    248
    In my experience you can perfectly export the distribution certficiate (the p12 file) from your local keychain, as long as you make sure that the provisioning profile is based on the same distribution certificate. Because when you export the provisioning profile frmo the apple dev website you have to select which distr profile it matches with.

    (just posting this here because it came up first on google for a problem I had :p )