Not signed in
Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Download “batchmode.zip” project, expand it but do not open with any unity version
2. Open Terminal window in the project folder
3. Run command:
/Applications/Unity/<unity version>/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectPath /<path to project>/batchMode -executeMethod MyEditorScript.PerformIOSBuild
4. When Xcode project is created, move "build.xml" file inside the Xcode project
5. Open terminal window inside the Xcode project window
6. Open "build.xml" file and adjust all values below to paths appropriate for your setup:
7. In terminal enter command:
ant -f build.xml
(this script changes everything form Unity-iPhone, to a custom name - AppName)
8. Open new terminal window and enter these commands to unlock the custom keychain and force re-import the correct certificate with the right app permissions
9. Next run command bellow, to archive Xcode project
Expected: Archive is successful
Actual: Archiving fails with error:
error: "Unity-iPhone" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Unity-iPhone' from project 'AppName')
Reproducible with versions: 2021.3.45f1, 2022.3.18f1, 2022.3.45f1, 2022.3.53f1, 6000.0.28f1, 6000.1.0a5
Possible regression: 2022.3.18f1 (user reported that this issue is not reproducible with this version, but I still reproduce this issue here)
Tested with: MacBook Pro, Apple M1 Max, OS: Sequoia 15.1, Xcode 16.0
Note:
Sign in to see your voted issues