find_ios_sysroot.py 285 B

12345678910111213
  1. #!/usr/bin/env python
  2. #
  3. # Copyright 2016 Google Inc.
  4. #
  5. # Use of this source code is governed by a BSD-style license that can be
  6. # found in the LICENSE file.
  7. import subprocess
  8. import sys
  9. (sdk,) = sys.argv[1:]
  10. print subprocess.check_output(['xcrun', '--sdk', sdk, '--show-sdk-path'])