yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
625 stars 146 forks source link

You don’t have permission to save the file “security” in the folder “org.swift.swiftpm” #304

Closed smolskyaleksey closed 1 year ago

smolskyaleksey commented 2 years ago
Снимок экрана 2022-04-15 в 11 36 56

Hi I run brew install SwagGen and get error

warning: Failed creating default security location, Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “security” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/aleksey.smolskiy/Library/org.swift.swiftpm/security, NSUnderlyingError=0x60000111a6a0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

How can I fixed it?

JanC commented 2 years ago

hey, this looks more like an issue with homebrew itself and not realted to SwagGen.

Do other brew install commands work?

smolskyaleksey commented 2 years ago

Hi, what kind of command do you want check

cwagdev commented 1 year ago

I had to verify xcode-select was set to an appropriate Xcode installation, when it was set to /Library/Developer/CommandLineTools I was getting this message.

By running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer and then trying again the issue was resolved.

I was actually seeing this issue with another package but came across this issue from Google

yonaskolb commented 1 year ago

Cool, closing this issue as not related to SwagGen