How to reproduce:
1. Open the user’s attached " ReproUnityDuplicateLinkFlags (1).zip" project (note that the “DuplicateLinkerTest.zip” project also demonstrates the issue, but it is really not the end-to-end workflow the user experiences, so it can be a bit confusing).
2. Possibly modify the code in Editor/BuildProcess.cs (depending on your Unity version, see the comment below)
3. Enable the “Create Xcode Project” setting in Build Settings
4. Make sure the Scripting Backend is set to “IL2CPP” in Player Settings
5. Build the project
6. Open the Xcode project and build it
7. Observe the result
Expected result: The project is built
Actual result: Build fails
Reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b4
Reproduced on: macOS 13.6.3 (Intel)
Not reproducible on: No other environment tested
Notes:
- not reproducible with “Mono” Scripting Backend
- not reproducible on iOS, tvOS builds