Restore quick look tests
#17 deleted the quick look tests due to an issue with either xcodebuild or GH Actions. A reproducible test case has been created at https://github.com/macdrevx/ActionsErrorDemo and bugs are open with both GitHub and Apple.
Here's a summary of the bug:
Title
xcodebuild fails with error "Error deleting scheme: Cannot modify data because the process disallows saving"
Environment
Xcode 14.2
Description
I've run into a peculiar issue with building a Swift package with xcodebuild. I've only been able to repro when running the build on GitHub Actions. Example:
https://github.com/macdrevx/ActionsErrorDemo/actions/runs/4507794222/jobs/7935907313
https://github.com/macdrevx/ActionsErrorDemo is a minimal Swift package that depends on another minimal Swift package https://github.com/macdrevx/ActionsErrorDemoDependency
The only interesting thing about either package is that the test target for ActionsErrorDemo contains some image resources.
The necessary conditions to repro the bug seem to include:
- Have a dependency
- Have bundled resources
- Build in GitHub Actions with the standard xcodebuild invocation:
$ xcodebuild -scheme ActionsErrorDemo -sdk "${{ matrix.sdk }}" -destination "${{ matrix.destination }}" clean test