How to reproduce:
1. Build a new Unity project with “Create Xcode Project” setting toggled
2. Open the created “xcodeproj” file in the Xcode application
3. Start the active scheme by clicking the triangle-form button
Expected result: The project is successfully built and run
Actual result: Building is failed with EXC_BAD_INSTRUCTION error thrown
Reproducible with: 2021.2.0a14, 2021.3.16f1, 2022.2.1f1, 2023.1.0a19
Not reproducible with: 2020.3.42f1, 2021.2.0a13, 2023.1.0a20, 2023.1.0a23
Reproduced on: macOS 13.0 (Intel)
Thrown error on ud2 instruction:
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Note:
- On some versions, the button for active scheme start
is unclickable or project is built without error, but doesn’t run.
Versions that are having these problems are considered as Reproducible.
- Xcode version is 14.1