swiftlang / swift-docc-plugin

Swift Package Manager command plugin for Swift-DocC
https://swiftpackageindex.com/swiftlang/swift-docc-plugin/documentation/swiftdoccplugin
Apache License 2.0
326 stars 52 forks source link

error: Plugin does not have access to a tool named ‘docc’ #74

Open TrabelsiAchraf opened 11 months ago

TrabelsiAchraf commented 11 months ago

I have this error when running this commande : swift package generate-documentation

error: Plugin does not have access to a tool named ‘docc’

hectr commented 2 months ago

I had the same error.

xcodebuild docbuild would also fail with the error "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance".

Both errors went away after running the command sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.