Version: 2021.1
Configuración de una cuenta iOS
Structure of a Unity Xcode Project

Dentro del proceso de Construcción de iOS

Construcción y Ejecución desde el Editor

El proceso de construcción de aplicación iPhone/iPad es un proceso de dos pasos:

  1. Xcode project is generated by Unity with all the required libraries, precompiled .NET code and serialized assets.
  2. Xcode project is built by Xcode and deployed and run on the actual device.

When “Build” is hit on “Build settings” dialog only the first step is accomplished. Hitting “Build and Run” performs both steps. If in the project save dialog the user selects an already existing folder an alert is displayed. Currently there are two Xcode project generation modes to select:

  • replace - todos los archivos de la carpeta objetivo son eliminados y el nuevo contenido es generado
  • append - the “Data”, “Libraries” and project root folder are cleaned and filled with newly generated content. The Xcode project file is updated according to the latest Unity project changes. Xcode project “Classes” subfolder could be considered as safe place to place custom native code, but making regular backups is recommended. Append mode is supported only for the existing Xcode projects generated with the same Unity iOS version.

Si Cmd+B es presionado entonces la construcción automática y el proceso de ejecución es invocada y la última carpeta utilizada se asume como el objetivo de construcción. En este caso el modo append es asumido como predeterminado.

Nota: Paso uno arriba se puede realizar en un PC o Mac. Solamente un Mac puede realizar el paso dos. Esto significa que para lograr que un proyecto de Unity se ejecute en un iDispositivo usted necesitará un Mac.

Construcción desde la linea de comando

Once Unity has been used to build the Xcode project it is possible to perform the build and run from the command line. After the editor has built the Xcode project do the following from the terminal:

unity$ xcodebuild test -destination "platform=iOS,id=400d20d00baf8d4997b47be0416cf5c44dd2d3bc" -scheme Unity-iPhone

Note that 400d20d00baf8d4997b47be0416cf5c44dd2d3bc in the command line example above is the ID of the iDevice that will run the project. You will need to determine your device ID using the Window > Devices menu in Xcode.

Configuración de una cuenta iOS
Structure of a Unity Xcode Project