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

Is There A Step By Step Guide?

Discussion in 'Unity Build Automation' started by renman3000, Mar 13, 2015.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    Hi there,
    Is there a step by step guide somewhere to build for iOS and Android?

    Thanks.
    I have downloaded the sample project but all I see are various scenes, nothing that I would relate to an iOS build per say.
     
  2. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    Which project do you refer to? If you talk about the UCB Demos - there will be a step-by-step guide soon! Otherwise please let me know which demos you use.

    1.) Create a repository where you host your files (e.g. Angry Bots or similar to test the setup)
    2.) Commit your initial project files (Assets + ProjectSettings folder)
    3.) Create a Unity Cloud Build project and add your repository link + go through the setup
    4.) At the end it hopefully builds
    5.) If not, check the full log for error messages, resolve them, commit and let it build again

    Please let me know if this helps! ;)
     
    renman3000 likes this.
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    Hi @David Berger, Thanks for your help. I am at point 3) and am asked to provide a link, this link must it be online, somewhere, or can it be on my desktop, and Unity just goes in and gets it. Also, the SCM type, what should this be?

    Thanks!
     
  4. ANIMA-LT

    ANIMA-LT

    Joined:
    Nov 5, 2014
    Posts:
    17
    Hi,

    I am on step 1)
    At moment I have no idea that is repository...:)

    I found "Source Tree" app for git.. I made repository. How host it?

    Edit:
    Found all what i need

    "Source Tree"(git) + bitbucket.org(hosting)

    Already build my app :)
     
    Last edited: Mar 19, 2015
    renman3000 and David-Berger like this.
  5. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    Hi, So I downloaded SourceTree, and set up a bitbucket account and created a repository. I am stuck now, tho. How do I upload my project files to the bitbucket repository??

    Edit, According to Unity Cloud, my Repo Host in inaccessible.
    #Confused
     
  6. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    If you use bitbucket, I can highly recommend their documentation, which is very good. But I just summed up the most important steps if you use the command line (but it's doable with SourceTree too, but I only use terminals so I stick to it for now just lookup the documentation of the repository providers or tools how to do it)

    Step-by-step guide
    This step by step guide shows you how to setup a git repository on github or bitbucket and use it with Unity Cloud Build. If you have created a git repository you can skip the part Setup GIT repository and go straight to Setup UCB.
    I refer to Bitbucket and Github because I host my own projects there and they are free, but feel free to use any hoster you like. As game I use the Angry bots demo. I use Terminal on Mac.

    Setup GIT repository
    Create a git repository on github or bitbucket and add your project files. You can also use any GUI tool to set it up, but for demonstration purpose it's much quicker to use command line.

    That's the part which adds your project to a repository.

    Setup UCB
    Create a Unity Cloud Build project using your repository with a Unity project.

     
    renman3000 likes this.
  7. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    Hi David, or anyone,
    I am failing with the Terminal work.....

    I will simply state what I have and hopefully the gods will help. :)


    I created a Github account, a repository with Unity as an gitignore.
    I got the clone url, https://github.com/name/someProject.git
    I opened terminal and ran it but nothing of note, see pic


    Upon this, I opened Github for Mac and took the various steps to match the setup I had above. I got to the stage of Pushing the file, but am told "Failed to get Head", not what I wanted to hear.

    Anyhow, I apologize for my rookie ish ness.
    Any help is appreciated.
    Ren
     
  8. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    Might be missing permissions, but maybe you would be better of using a gui app like source tree? There are massive tutorials on how to use it e.g.



    followed by some tutorials about unity and version control :)

     
    renman3000 likes this.
  9. ANIMA-LT

    ANIMA-LT

    Joined:
    Nov 5, 2014
    Posts:
    17
    My steps(Source Tree + bitbucket.org):

    STEP A (SSH key)

    1.Login to bitbucket
    2. Go to Manage account

    3. Go to SSH keys

    4. Open "Source TREE"
    5 Generate SSH in "source tree" Tools>Create or Import SSH Keys

    6. Copy SSH and save private and public key

    7. Add SSH code to your acount in bitbucket.org
    upload_2015-3-19_23-42-6.png

    STEP B (repositories )

    1. Create new project
    upload_2015-3-19_23-45-16.png
    upload_2015-3-19_23-46-35.png

    2. Open in Sourcetree
    upload_2015-3-19_23-46-50.png

    3. Create new folder for unity project(empty) and add GIT
    upload_2015-3-19_23-48-42.png
    4. It should ask for SHH privat key... or something similar

    5. Go to bitbucket and copy link for "Unity cloud"
     
    Last edited: Mar 21, 2015
  10. ANIMA-LT

    ANIMA-LT

    Joined:
    Nov 5, 2014
    Posts:
    17
    STEP C(add unity files):
    1. Go to GIT project location and copy all unity project files(in my case to c:\UnityProject)
    upload_2015-3-20_0-0-43.png
    2.Ignore not needed files:
    upload_2015-3-20_0-3-31.png
    4. Click unstage files(if project big it take time even 30min.)
    upload_2015-3-20_0-5-46.png



    5. Commit and Push
    upload_2015-3-20_0-8-26.png

    6. Add it to unity cloud and it should work:)
     
  11. ANIMA-LT

    ANIMA-LT

    Joined:
    Nov 5, 2014
    Posts:
    17
    What steps worked for me... I
     
    renman3000 likes this.
  12. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680

    Hi @ANIMA.LT ,
    Thanks for your help. Quick question, hopefully you can answer.

    I am following your steps however, when I get to STEP A-5, where I must access the Tools menu, I can not. I have no Tools menu at all. Google was not that helpful, nor the Source Tree Help.

    Any ideas?
     
  13. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
  14. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    I'm stuck. I followed all the instructions and it says it built for IOS with a success result. but when I click install button it says this build can only be installed on IOS devices and then does nothing. How do I get the build actually on the device?
     
  15. LouisHong

    LouisHong

    Joined:
    Nov 11, 2014
    Posts:
    69
    @David Berger How do you install on the ios device after the build succeeds? My succeeded but visiting the install link from the email on my iphone does not allow me to install my build, instead it tells me to download the build?
     
  16. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    I figured it out in the end, you need to download the binary file and manually upload it to your device using either iTunes or something like iFunBox
     
  17. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    740
    If you device is in the provisioning profile used for your build it should be installable from Safari if you visit the cloud build website via the link. If you added the device recently you need to clean rebuild the project.
     
  18. LouisHong

    LouisHong

    Joined:
    Nov 11, 2014
    Posts:
    69
    Thanks, somehow it just worked today. :p