Permission error in Xcode Cloud
hiragram opened this issue · comments
Hmm this is very strange. Unfortunately I have never used Xcode Cloud before so I am not completely sure what might cause this.
I assume that you are experiencing this issue after working around the plugin validation issues described on the Swift forums?
At a guess, it might be related to how I create the output directory (XCStringsTool) for writing the generated source (Compose.swift):
But I don’t know much about file/directory permissions to know if I need to give the XCStringsTool directory more permissions or not?
I assume that you are experiencing this issue after working around the plugin validation issues described on the Swift forums?
Yes. IDESkipPackagePluginFingerprintValidatation
is enabled.
I am looking into stackoverflow which you've pointed out. Thanks.
@liamnichols What is the purpose of this subdirectory? Is it required to work?
btw, I guess this issue is caused by XcodeCloud-side bug so far. Sent feedback to apple.
I create the subdirectory based on the documentation in the SE proposal:
/// The path of a writable directory into which the plugin or the build /// commands it constructs can write anything it wants. This could include /// any generated source files that should be processed further, and it /// could include any caches used by the build tool or the plugin itself. /// The plugin is in complete control of what is written under this di- /// rectory, and the contents are preserved between builds. /// /// A plugin would usually create a separate subdirectory of this directory /// for each command it creates, and the command would be configured to /// write its outputs to that directory. The plugin may also create other /// directories for cache files and other file system content that either /// it or the command will need. var pluginWorkDirectory: Path { get }
Please also share the feedback number so that I can duplicate it 🙏
I found another post describing the same issue here (but no solution 🥲): https://developer.apple.com/forums/thread/725474
Finally I've just found what causes this issue. #36