-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash script fails with permission errors on Xcode 15 Beta 4 #14
Comments
Until Xcode 14.x, you could probably get around the plug-in sandbox limitation by writing from a subprocess. If you build from command, I can avoid the sandbox by setting the following flag, but I don't think it is a good practice. swift build --disable-sandbox I will continue to investigate. |
Thanks, I wanted to mention one other thing. These permission failures did not cause a warning or error in the build process, I noted that the source revisions were not accurate and tracked it down to this. These errors should be propagated back to the build. |
I don't know if this helps, but this references seems to talking about the same issue. https://forums.swift.org/t/extensible-prebuild-plugin-such-as-swiftgen/56495/5 |
I agree with this. |
It seems that the bug was the reason why it was working before Xcode14. |
It seems to be possible to disable the Sandbox in BuildToolPlugin by doing the following settings.
|
I have a setup which executes a bash script in the source tree to modify some source files in the source tree.
This worked fine with Xcode Version 14.3.1 (14E300c) but fails with Xcode Version 15.0 beta 4 (15A5195m). I wonder if this is an Xcode beta problem or are there some new flags that need to be added to give permissions to the source directory? Clearly the source directory is being denied access. If new flags are needed, then where do they go?
This is SPM project run from Xcode.
The yaml file:
The errors are:
The text was updated successfully, but these errors were encountered: