Skip to reading
Mobile Game Setup & Testing

Compile and sign the Apple version

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

IPHONE AND IPAD / FIRST BUILD

Actual PCA output from a local iOS build on Linux. A Mac with Xcode performs the compilation.

01. Prepare a Mac with a compatible Xcode and iOS SDK. Open Xcode once, finish its setup, add the Apple account you use for development, and install Godot plus its matching export templates. Plug in the iPhone or iPad, unlock it and trust the Mac. Enable Developer Mode when prompted for an Xcode-installed development build.

02. Choose a unique bundle ID and the Apple Team ID for the team doing the signing. The bundle ID, certificate, entitlements and provisioning profile must describe the same app and distribution route. Your tester’s device must be eligible for the development or ad hoc profile you use.

03. For the PCA route choose Build Game iOS (IPA). On the Mac, point Build Tools at the Godot executable inside Godot.app. Set the bundle ID and Apple Team ID. Start with Release build off and build to a writable folder. The local result goes under build/ios/game.ipa. Install through a route allowed by its signing profile.

04. For interactive debugging choose Editable Godot source for mobile (Android / iOS) in PCA. Open the exported project on the Mac. In Godot Project Export iOS, set the Team ID and Bundle Identifier. Choose the project-only option when you want Xcode to finish the build, export into an empty folder and open the generated Xcode project.

Windows and Linux users can prepare editable source locally and move it to the Mac. A configured Mac worker can return a signed build too. A smartphone running PCA uses Remote Build for the in-app IPA command.

Page 13 of 22Permalink
Go to page