Search Issue Tracker
By Design
Votes
1
Found in
2022.3.16f1
2023.2.3f1
2023.3.0a18
6000.0.0b11
Issue ID
UUM-59417
Regression
No
[iOS] "Run Script" task is being duplicated when doing an "Append" build on top of a previous build
How to reproduce:
1. Build the attached “BugReport.zip” project for iOS platform
2. Build the project for the iOS platform again and select “Append” when building
3. Open Xcode project
4. Open Unity-iPhone > Build Phases and select “GameAssembly” in the Targets
5. Observe the result
Expected result: one “Run Script” task
Actual result: two “Run Script” tasks
Reproducible with: 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Could not test with: 2021.3.33f1 (No “GameAssembly” in the Targets)
Reproduced on: macOS 13.6.3 (Intel)
Not reproducible on: No other environment tested
Note: not reproducible if pressing “Replace” when building the second time
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit throws warning and fails to clear references when fields are not typed as UnityEngine.Object
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
Resolution Note:
The reproduction project modifies IL2CPP build script, in turn Unity detects that the original script (in its original form) does not exists and adds it again.
The existing shell script phase should not be modified. A new script should be added instead: https://docs.unity3d.com/ScriptReference/iOS.Xcode.PBXProject.AddShellScriptBuildPhase.html