Xcode version must be specified to use an Apple CROSSTOOL

前端 未结 5 435
庸人自扰
庸人自扰 2021-01-30 03:22

I try to build tensorflow-serving using bazel but I\'ve encountered some errors during the building

ERROR:/private/var/tmp/_bazel_Kakadu/3f0c35881c95d2c43f04614         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 03:52

    Had the same problem, and since I am using a beta version of XCode, I had to find the installation in /Downloads/Xcode-beta.app instead.

    Incidentally, the solution for me was to open XCode, go to Preferences, and select the Locations tab. The Command Line Tools drop-down was blank, and I had to press it and select a version (Xcode 9.0 in my case). I then ran bazel clean --expunge and repeated the build process without getting the error. Hope this helps someone.

提交回复
热议问题