1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 # This script returns the path to the SDK of the given type. Pass the type of
9 # SDK you want, which is typically "iphone" or "iphonesimulator".
11 # In the GYP build, this is done inside GYP itself based on the SDKROOT
14 if len(sys
.argv
) != 2:
15 print "Takes one arg (SDK to find)"
18 print subprocess
.check_output(['xcodebuild', '-version', '-sdk',
19 sys
.argv
[1], 'Path']).strip()