Skip to content
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

Plugin doesn't work with Xcode 14.3 on intel macs: deny file-write #13

Open
cassianomonteiro opened this issue May 17, 2023 · 0 comments

Comments

@cassianomonteiro
Copy link

It works fine with Xcode 14.2 on intel macs and also Xcode 14.2 and Xcode 14.3 on M1 macs, both machines onmMacOs 13.3.1. When trying to run with Xcode 14.2 on the intel mac, we get this error. Looks like like the plugin is not getting write permissions on the project folder.

working directory:
   /Users/cassiano/Developer/ios-primary/Modules/FaireCore
tool mapping:
   swiftgen: /Users/cassiano/Library/Developer/Xcode/DerivedData/FaireCore-eotjsdikibsjxbernjcwfvnsyolf/SourcePackages/artifacts/swiftgenplugin/swiftgen/swiftgen.artifactbundle/swiftgen/bin/swiftgen [x86_64-apple-macosx]
tool search paths:
   /Applications/Xcode-14.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
   /Applications/Xcode-14.3.0.app/Contents/Developer/usr/bin
   /bin
   /sbin
   /usr/bin
   /usr/sbin

plugin process ended by an uncaught signal: 9 <command: /usr/bin/sandbox-exec -p '(version 1)
(deny default)
(import "system.sb")
(allow file-read*)
(allow process*)
(allow file-write*
    (subpath "/private/tmp")
    (subpath "/private/var/folders/gj/blny74rx0j7cwdswv46qgclm0000gq/T")
)
(deny file-write*
    (subpath "/Users/cassiano/Developer/ios-primary/Modules/FaireCore")
)
(allow file-write*
    (subpath "/Users/cassiano/Library/Developer/Xcode/DerivedData/FaireCore-eotjsdikibsjxbernjcwfvnsyolf/SourcePackages/plugins/fairecore.output/FaireCore/SwiftGenPlugin")
    (subpath "/Users/cassiano/Library/Developer/Xcode/DerivedData/FaireCore-eotjsdikibsjxbernjcwfvnsyolf/SourcePackages/plugins")
)
' /Users/cassiano/Library/Developer/Xcode/DerivedData/FaireCore-eotjsdikibsjxbernjcwfvnsyolf/SourcePackages/plugins/SwiftGenPlugin>, <output:
>
@cassianomonteiro cassianomonteiro changed the title Plugin doesn't work with Xcode 14.3 on intel macs with deny file-write Plugin doesn't work with Xcode 14.3 on intel macs: deny file-write May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant