MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / getXcodeBasePath

Function getXcodeBasePath

compile_database.py:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def getXcodeBasePath():
24 global XCODE_BASE_PATH
25 if XCODE_BASE_PATH is None:
26 try:
27 XCODE_BASE_PATH = subprocess.check_output(
28 ["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
35def isProjectRoot(directory):

Callers 1

InferFlagsForSwiftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected