After months of fighting with permission on Xcode Cloud, by chance I found what was the issue on my case!
In my plugin implementation I write the file through
"""
// auto generated swift file
// ... the content
""".write(to: output, atomically: true, encoding: .utf8)
Using atomically: true is the issue: this means that swift writes the entire content into a temporary file placed somewhere else and Xcode Cloud doesn't have permission in this moment!
Using atomically: false the file is written directly into our output file, which is the context.pluginWorkDirectory.appending("GeneratedImageAssets.swift") and permissions here hare granted!!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: