Reproduction steps:
1. Open the attached "bug-build-package-scene.zip" project
2. Make a build by using the menu item: Unity Support > Build Player
3. Observe the Console window
Actual result: Build fails with a "Failed to open" error
Expected result: Build succeeds and no errors are thrown in the Console
Reproducible with: 6000.2.0a7, 6000.3.7f1, 6000.4.0b7, 6000.5.0a6
Not reproducible with: 6000.0.67f1, 6000.2.0a6
Reproduced on: macOS 15.7.3 Arm64 (reporter), Windows 11
Not reproducible on: No other environments tested
Notes:
- To reproduce on Windows, change line 14 in "BuildScript.cs" to: “BuildPipeline.BuildPlayer(scenes, buildLocation, BuildTarget.StandaloneWindows64, BuildOptions.None);”
- Error that is thrown in the console when build fails: “Error building Player: Failed to open”
- When building a project in 6000.0.67f1 or 6000.2.0a6, you get a warning “Invalid AssetDatabase path”