swiftlang / swift-docc-plugin

Swift Package Manager command plugin for Swift-DocC
https://swiftpackageindex.com/apple/swift-docc-plugin/1.3.0/documentation/swiftdoccplugin
Apache License 2.0
316 stars 54 forks source link

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

Open TrabelsiAchraf opened 8 months ago

TrabelsiAchraf commented 8 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 1 week 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.