Unity Issue Tracker - Xcode Build fails with "no such file or directory" when building an exported project as universal binary with Script Debugging enabled
Fixed
UUM-19218
Xcode Build fails with "no such file or directory" when building an exported project as universal binary with Script Debugging enabled
Unity: Build Systems
IL2CPP
2023.1
Fixed
2023.1.X
2023.1.0a2 onwards
Won't Fix
2022.2.X
2022.1.X
This issue is specific to Unity 2023 (the code in question does not exist in 2022 and the issue with the same repro steps will not reproduce in 2022), and thus the fix cannot be backported.
2022.1 has reached end of life so the issue will be fixed in a newer version.
Reproduction steps:
Open the user’s attached project
Go to File > Build Settings
In the Build Settings, check these options: Create XCode Project, Development Build, Script Debugging.
Build the project
Run the exported project in XCode.
Expected result: Build is played
Actual result: Build is failed with “Showing Recent Messages /[build directory]/clang:1:1: no such file or directory: 'Il2CppOutputProject/IL2CPP/libil2cpp/pch/pch-c.h'“