Run xcrun and return the output. Parameters ---------- cmd : list of str The command sequence. Returns ------- out : str The output string.
(cmd)
| 27 | |
| 28 | |
| 29 | def xcrun(cmd): |
| 30 | """Run xcrun and return the output. |
| 31 | |
| 32 | Parameters |
| 33 | ---------- |
| 34 | cmd : list of str |
| 35 | The command sequence. |
| 36 | |
| 37 | Returns |
| 38 | ------- |
| 39 | out : str |
| 40 | The output string. |
| 41 | """ |
| 42 | cmd = ["xcrun"] + cmd |
| 43 | proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
| 44 | (out, _) = proc.communicate() |
| 45 | return out.strip() |
| 46 | |
| 47 | |
| 48 | def __get_min_os_version(sdk): |
no outgoing calls
no test coverage detected
searching dependent graphs…