Workaround for using SwiftGenPlugin in Xcode Cloud #1102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The atomic version of api has a bug as of Swift 5.9.2 where writing to DerivedData folder located on external drives fails. This is also how Xcode Cloud is setup, hence writing generated files with SwiftGen fails there too.
See more details apple/swift-package-manager#6948 (comment)
The proper fix is already implemented apple/swift-package-manager#6910 but not released yet (as of Swift 5.9.2)
Fixes SwiftGen/SwiftGenPlugin#18
I've tested this by making a private binary release of this change and testing with a fork of SwiftGenPlugin, see more here SwiftGen/SwiftGenPlugin#18 (comment)