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

281 views
Skip to first unread message

cffelf

unread,
Oct 17, 2016, 2:28:12 AM10/17/16
to Chromium-discuss
Hello,
there is an error when I build chromium 53 on Mac os 10.12
xcode 8.0
information:
git log:
$ git log
commit 49dccdea6645f6759fc6e779e12e81930ede2d4a
Author: chrome-cron <chrom...@google.com>
Date:   Tue Aug 30 22:00:10 2016 +0000

    Publish DEPS for Chromium 53.0.2785.89

ERROR:
$ ninja -C out/gn chrome
ninja: Entering directory `out/gn'
[4/13525] ACTION //components/policy:convert_mcx_plist(//build/toolchain/mac:clang_x64)
FAILED: gen/components/policy/org.chromium.Chromium.manifest
python ../../build/config/mac/xcrun.py xcrun plutil -convert xml1 gen/chrome/app/policy/mac/app-Manifest.plist -o gen/components/policy/org.chromium.Chromium.manifest
xcrun: error: unable to find utility "xcrun", not a developer tool or in PATH
Traceback (most recent call last):
  File "../../build/config/mac/xcrun.py", line 48, in <module>
    rv = subprocess.check_call(['xcrun'] + unknown_args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['xcrun', 'xcrun', 'plutil', '-convert', 'xml1', 'gen/chrome/app/policy/mac/app-Manifest.plist', '-o', 'gen/components/policy/org.chromium.Chromium.manifest']' returned non-zero exit status 72
[9/13525] CXX obj/printing/printing/image.o
ninja: build stopped: subcommand failed.


But when I run xcrun on Terminal:
localhost:src cff$ xcrun
Usage: xcrun [options] <tool name> ... arguments ...

Find and execute the named command line tool from the active developer
directory.

The active developer directory can be set using `xcode-select`, or via the
DEVELOPER_DIR environment variable. See the xcrun and xcode-select manual
pages for more information.

Options:
  -h, --help                  show this help message and exit
  --version                   show the xcrun version
  -v, --verbose               show verbose logging output
  --sdk <sdk name>            find the tool for the given SDK name
  --toolchain <name>          find the tool for the given toolchain
  -l, --log                   show commands to be executed (with --run)
  -f, --find                  only find and print the tool path
  -r, --run                   find and execute the tool (the default behavior)
  -n, --no-cache              do not use the lookup cache
  -k, --kill-cache            invalidate all existing cache entries
  --show-sdk-path             show selected SDK install path
  --show-sdk-version          show selected SDK version
localhost:src cff$ which xcrun
/usr/bin/xcrun

why ninja cann't find xcrun?? please help me .

Reply all
Reply to author
Forward
0 new messages