This page contains instructions on how to build your Unity application for iOSApple’s mobile operating system. More info
See in Glossary. For information on the build process for iOS and the tools Unity uses, see How Unity builds iOS applications.
At a high level, the iOS build process has two steps:
Unity can perform step one on all operating systems that run the Unity Editor. However, since you can only install xCode on a macOS device, Unity can only perform step two on a macOS device. This means to fully build an iOS application locally, your development machine must run macOS. If it doesn’t, one alternative is to use Unity Cloud Build which can build your applications for you in the cloud. This makes it possible to develop iOS applications on a non-macOS machine. For information on how to set up Unity Cloud Build, see Unity Cloud BuildA continuous integration service for Unity projects that automates the process of creating builds on Unity’s servers. More info
See in Glossary.
To build your Unity application for iOS:
Tip: After you specify the output path the first time, you can use the Cmd+B keyboard shortcut to build and run the application. Unity uses the Append mode to regenerate the Xcode project.
After Unity generates the Xcode project, you can build and run the application from the command line. To do this:
<device-id>is your device ID.
unity$ xcodebuild test -destination "platform=iOS,id=<device-id>" -scheme Unity-iPhone.