Setup Unity for mobile development with XCode iOS simulator tests
- Lightning Setup
- LWRP (2019 or lower versions) or Universal Pipeline (2020 unity version)
- Switch Platform (iOS on MAC)
- Define orientation only (portrait or landscape)
- iOS Processing - Project Settings
- Mobile Moves Input
- Menu bar at Unity:
-
Window > Package Manager
-
All Packages (filter)
- Lightweight RP > Install
- LWRP Create
- LWRP Config
- MenuBar > Edit > Project Settings > Graphics > Drag&Drop created LWRP (LWRP Set)
-
- Menu bar at Unity
- File
- Build Settings
- Select "iOS" and click on "switch platform"
- Click "Add Open Scenes"
- Click "Player Settings" for the next steps
At "Player Settings":
- Select the platorm (phone icon is iOS)
- "Resolution and Presentation":
- Default Orientation = '>' (landscape) '^' (portrait)
- Allowed Orientations for Auto Rotation
- Color Space = "Gamma"
- Auto Graphic API = "Metal + OpenGLES3"
- Bundle Identifier = "com.Company.Proj"
- Target SDK = "Simulator SDK" (development) and "Device SDK" (production)

-
Find it in the project folder nav & add it to the hierarchy
- Disable and re-enable mobile inputs (unity menu bar)
Obs.: a sample right button (jump is already there, just change it skin, to do it convert the image from default to Sprite2D UI)














