-
Notifications
You must be signed in to change notification settings - Fork 62
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 15 #14
Comments
Hi, I also get
|
As a temporary solution until the update comes in, you can use this functionality https://github.com/SwiftGen/SwiftGenPlugin#using-it-as-a-command to bypass the access rights error. |
Is there some breaking change for SwiftPM's plugin permission control. Many user of Xcode 15 beta/Swift 5.9 beta is experiencing an unexpected build issue. cc @neonichu |
The upstream feedback: "If this works on Xcode 14, it was just a bug and Xcode 15 fixed it." swiftlang/swift-package-manager#6814 And we may consider using However there is other issue with |
For me this plugin is working as expected on Xcode 15 on my local machine. It is failing on Xcode Cloud with the same error. |
I'm stuck with this error and can't build my project |
I have mistakenly created similar issue but in SwiftGen cli repo: SwiftGen/SwiftGen#1075 |
When running the BuildToolPlugin from the command line, I can avoid errors by adding the "--disable-sandbox" option. Is there a configuration to automatically apply this option when running the plugin from an Xcode project? |
I was able to "make it work" by passing hardcoded config to SwiftGen.
Cons:
Here is what I did:
Changes I have made were the ones arguments: I have just hardcoded how my swiftgen.yml is actually mapped to cli arguments and run it agains sandbox directory (see If someone knows magic command that can be used to alter output dir if swiftgen (maybe some env variable?), then It will be trivial to fix, if not this will require swiftGen CLI itself to be extended. |
[Update] Plugin already provides environment variables one of which is
See that output uses One downside (at least for me) is that now it works, but won't create file that can be checked in to the repository. [Update2]: |
Unfortunatelly swiftgen SPM plugin has multiple issues with Xcode 15. For now swiftgen execution must be switched to the build phase scripts. Issues: - SwiftGen/SwiftGenPlugin#14 - SwiftGen/SwiftGenPlugin#15
Using |
Unfortunatelly swiftgen SPM plugin has multiple issues with Xcode 15. For now swiftgen execution must be switched to the build phase scripts. Issues: - SwiftGen/SwiftGenPlugin#14 - SwiftGen/SwiftGenPlugin#15
Does it work for you with standard |
Yes, it does work with the standard |
As far as creating the file to check into repo, we created a build phase Run Script to copy the SwiftGenPlugin generated file: We didn't know the path to DERIVED_SOURCES_DIR, so we searched inside DerivedData to find our generated file, and wound up with the following input file for the Run Script: Output file: Replace the YOUR* sub-components in the path. Update: |
|
|
I tried to build my project with Xcode 15 and got a new error:
Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Strings+Generated.swift” in the folder “Generated”." UserInfo={NSFilePath=ticketchain/Supporting Files/Generated/Strings+Generated.swift, NSUnderlyingError=0x6000023308a0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
Does anyone know how to fix it ?
The text was updated successfully, but these errors were encountered: