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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.