Closed SergioB-dev closed 3 months ago
I believe it's hiding a crash, can you confirm what macOS version you're running? If there's a crash log, can you share the crashing thread's backtrace?
Yes, I've updated the original post with the Mac version (Version 15.1 Beta (24B5009l)
and provided a txt
file with the full stack trace under Additional information
You might need to update to 15 beta 5 (24A5309e), the same beta drop that matches the Xcode one.
I'll give it a shot.
Got it working, thanks for the support. Feel free to close this issue.
Description
Problem:
It looks like this is failing when the generator tries to write code to disk. I didn't see any documentation surrounding any custom commands to allow write permissions here. Some additional context here is that this is my first using this package so it's also highly likely that I'm overlooking some step here.
Steps to reproduce: I really just followed the steps in WWDC 23 Meet Swift OpenAPI Generator:
openapi.yaml
and aopenapi-generator-config.yaml
I added boilerplate code to both of the those files just to get up and running:
Then when I try to compile I run into this error:
Actual error:
Reproduction
openapi.yaml
looks like this:the
openapi-generator-config.yaml
looks like this:Package version(s)
MacOS version:
Version 15.1 Beta (24B5009l)
Xcode version:Version 16.0 beta 5 (16A5221g)
- same issue in beta 4 as wellswift-openapi-generator 1.3.0
swift-openapi-runtime 1.5.0
swift-openapi-urlession 1.0.2
Expected behavior
Just for this to compile and get started using this package.
Environment
Additional information
full_stacktrace.txt