When you build a project for the iOS platform, Unity will create a folder that contains an XCode project. This project is required to compile and sign your app before deploying on devices, and it allows you to prepare and bundle your game for distribution on the App Store.
Antes de construir el proyecto iOS asegúrese que usted haya configurado el Bundle Identifier en Player Settings. Usted también puede escoger la SDK version para correr el juego en el dispositivo o en el simulador.
Esta contiene código que integra el tiempo de ejecución de Unity y Objective-C. Los archivos contenidos main.mm
y UnityAppController.mm/h
son el punto de entrada de la aplicación, y usted puede crear su propio AppDelegate, derivado del UnityAppController. Si usted tiene plugins incluyendo AppController.h
usted puede simplemente incluir UnityAppController.h
más bien. Si usted tiene AppController.mm/h
en las carpetas de Plugins/iOS usted puede fusionarlas y re-nombrarlas.
Also the InternalProfiler.h
file defines a compiler conditional to enable the Internal Profiler. This is a folder for code that doesn’t change often, and you can place your custom classes here. The changes to this folder are preserved between builds when the append mode is selected, but this function doesn’t support multiple build targets and requires a fixed structure of the Libraries
folder.
El Perfilador Interno (Internal Profiler) es rápido y discreto, y alimenta información básica:
This contains the serialized game assets, and .NET assemblies (dll
or dat
files) as full code (or metadata if stripping is on). The machine.config
file is the setup for various .NET services such as security, WebRequest, and more. The content of this folder is refreshed with each build, and you should not modify it.
This contains the .NET assemblies translated into ARM assembler (s
files) or libil2cpp.a
if the project was built using IL2CPP. The libiPhone-lib.a
file is the Unity Runtime static library, and RegisterMonoModules.cpp
binds Unity native code with .NET. The content of this folder is refreshed with each build, and you should not modify it.
Tus archivos personalizados pueden ser colocados aquí.
Icons and splash screens (png
files) are kept in asset catalogs found in the Unity-iPhone
folder. These files are automatically managed by Unity. Launch Screens, their XML Interface Builders (xib
files) and Storyboard files are stored in the project’s root folder. You can set them up in Player Settings. When creating custom launch images, make sure you adhere to Apple’s Human Interface Guidelines.
The Info.plist
is managed via Player Settings in Unity. This file is updated when building the player, instead of being replaced. You should not modify it unless it is really needed.
Estos incluyen el archivo del Proyecto de XCode (archivo xcodeproj
), y los vínculos de framework que solo son mostrados en el Project Navigator.