We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2778c29 commit 049b4b8Copy full SHA for 049b4b8
compile_database.py
@@ -23,9 +23,12 @@
23
def getXcodeBasePath():
24
global XCODE_BASE_PATH
25
if XCODE_BASE_PATH is None:
26
- XCODE_BASE_PATH = subprocess.check_output(
27
- ["xcode-select", "-p"]
28
- ).rstrip().decode('utf8')
+ try:
+ XCODE_BASE_PATH = subprocess.check_output(
+ ["xcode-select", "-p"]
29
+ ).rstrip().decode('utf8')
30
+ except subprocess.CalledProcessError:
31
+ XCODE_BASE_PATH = '/Applications/Xcode.app/Contents/Developer'
32
return XCODE_BASE_PATH
33
34
0 commit comments