Error: “xcrun: error: unable to find utility ”docsetutil“, not a developer tool or in PATH” while creating documentation

巧了我就是萌 提交于 2020-01-15 10:31:13

问题


I am using appledoc to generate Apple documentation for my framework.

It seems that after upgrading to Xcode 9.3 it has stopped working, giving me the following error:

xcrun: error: unable to find utility "docsetutil", not a developer tool or in PATH

I have looked at the known issue: https://github.com/tomaz/appledoc/issues/628

Which states that Xcode doesn't have docutils any more.

I have also tried with Xcode 9.4.1 and it's still not working.

Is there any solution for this?


回答1:


According to answer from @x43x61x69 in your GitHub link :

Seems not just docsetutil was removed but DADocSetAccess.framework as well. Tested with options: --create-html \ --no-create-docset \ --no-install-docset \ --no-publish-docset \ which can create htmls w/o error on Xcode 9.3 GM.

At least for generating html documents it seems to be working in my case. I have tested on XCode 9.4.1




回答2:


you should select Xcode Command line tool by opening Xcode prefrences->Locations tab -> select your current command-line tool from the spinner then try again



来源:https://stackoverflow.com/questions/51076094/error-xcrun-error-unable-to-find-utility-docsetutil-not-a-developer-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!