The short answer
Unity does not sign anything itself. It only writes the Team ID and the automatic signing switch from Player Settings into the generated Xcode project; the actual signing is done by Xcode on macOS. Switching to the cloud-based Unity Build Automation avoids signing on your own machine, but you have to upload a p12 and a provisioning profile, and in the official documentation the p12 is exported from a Mac's keychain.
Which steps require macOS
What you can fill in on Windows first
In the Unity Manual's iOS Player Settings reference, the Identification section has these items:
- Bundle Identifier: you must tick Override Default Bundle Identifier before you can enter it by hand.
- Version and Build: written to
CFBundleShortVersionStringandCFBundleVersionrespectively. - Signing Team ID: your Apple Developer team ID.
- Automatically Sign: lets Xcode sign automatically.
These are only settings, saved in the project.
What must happen on macOS
- Xcode creates the certificate and provisioning profile with the signed-in developer account and signs the archive.
- Preparing the p12 for Unity Build Automation: the approach its signing documentation describes is exporting the certificate as a p12 with a password from Keychain Access on a Mac.
So what the cloud build saves you is the Mac for compiling; the one-off certificate step, per the official flow, still touches a Mac.
How to do it on a remote Mac
Enter the team ID in the Editor and turn on automatic signing
Edit → Project Settings → Player → iOS tab → Other Settings → Identification. Enter the Signing Team ID and tick Automatically Sign. The team ID is shown in your membership details in the Apple Developer portal. The Manual explains that the generated Xcode project only carries the team ID if you entered it, and automatic signing depends on it.
Sign in to the developer account in Xcode on the remote Mac
Open Xcode → Settings → Accounts and add your Apple Account. For this step the Unity Manual links to Apple's documentation and has no steps of its own. Signing in needs a two-factor verification code, so keep the device that receives it within reach. We suggest an Apple Account used only for development.
Check the signing page after generating the project
Generate the Xcode project with Unity, open it, and select Signing & Capabilities for the Unity-iPhone target. You should see the team selected, automatic signing ticked and no red errors. If it is empty, go back to the Editor and check that the team ID was entered under the iOS platform tab and not another platform.
Do not change capabilities only by hand in Xcode
Capabilities such as push notifications, in-app purchase and Game Center, if added by hand on Xcode's signing page, are gone the next time you regenerate the project in Replace mode. Two remedies: regenerate in Append mode, or use a Unity post-build script to modify the project automatically after each generation; the Unity Scripting Reference defines the API.
For Unity Build Automation, prepare three things
According to its signing documentation, an iOS build target needs: a provisioning profile (
.mobileprovision), a.p12file, and the p12 password. The provisioning profile is created under Profiles in the Apple Developer portal, choosing the App ID, certificate and devices. The p12 is exported from Keychain Access on the remote Mac. Upload the three to the credentials settings of Build Automation; later cloud builds no longer need a Mac.Finish up: back up and clean up
Store the p12 and its password in your own password manager. If everything from now on goes to cloud builds, delete the certificate and private key from the remote Mac's keychain and sign out of the Apple Account. If you keep building on this machine, leave them in place but be sure to export before the rental ends; keychain contents are not kept once the machine is reclaimed.
FAQ
I entered the Signing Team ID but Xcode still says there is no team. Why?
First confirm that the account signed in to Xcode really belongs to that team. Unity's issue tracker has also recorded defects in certain versions that ignore these two settings; if you hit one, choose the team once by hand in Xcode and watch the Editor release notes.
Can I use a free Apple Account?
The Unity Manual says testing on an iOS device only needs a free Apple Account. Distributing on the App Store, or using services such as Game Center and in-app purchase, requires joining the Apple Developer Program.
Where do I specify the provisioning profile for manual signing?
Unity's scripting API has settings for the manual provisioning profile ID and type. We could not verify the corresponding place in the Editor interface in the current Manual's reference page, so go by the official documentation. You can also generate the project and specify it on Xcode's signing page.
The .ipa from a cloud build will not install on my phone. Why?
The most common cause given in Build Automation's troubleshooting documentation is that the device is not in the provisioning profile; next is a revoked or expired certificate. Update the certificate, regenerate the provisioning profile, upload again and rebuild.
Related
- How do I build an iOS .ipa from a Unity project without a Mac?
- How do I upload a Unity game to TestFlight and the App Store without a Mac?
- Can I sign in with my own Apple Developer account on a rented Mac?
- How do I sign an iOS app and upload it to the App Store from a remote Mac?
- iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support