SwiftGenPlugin icon indicating copy to clipboard operation
SwiftGenPlugin copied to clipboard

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

Open cassianomonteiro opened this issue 1 year ago • 0 comments

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 avatar May 17 '23 16:05 cassianomonteiro