Recent articles on working with Unity and Git:
- How to Git with Unity - Thoughbot, June 2017
- GitHub for Unity Active project on GitHub
- The complete guide to Unity & Git - Gamasutra, 2016
- Git for Unity Developers - Gamasutra, 2015.
- Unity and Git - Unity forum post from 2012
To build for iOS (iPhone and iPads - the tvOS is a separate target.
Getting prepared:
- Install XCode.
- Launch XCode.
- Add your Apple ID (XCode > Preferencs on the Accounts tab), if you have a GitHub account you may want to add it as well.
- Connect the iOS device that you'll be using for testing - iTunes will launch (launch it if it does not) and guide you through the process of setting it up to work with XCode.
Setting up to build for an iOS target:
In Unity:
- Open the scene(s) that are used in your game - add as many panes as you need to have them all open.
- From File > Build Settings…
- Choose the iOS target.
- Click on the Add Open Scenes button.
In XCode:
- Click on the play button.
- Your app will build.
- Approve codesign access to your Keychain.
On the iOS target device:
- You should see a Unity icon for you app.
- When you launch an app for the first time you will receive a notification that it comes from an Untrusted Developer with instructions to allow them in settings. To approve launch the Settingo app and go to General > Profiles & Device Management
- There should be a Developer App profile that matches your email - approve it to allow your apps to run on the device.
- Tap the Unity icon again to launch your app.