Skip to content

Commit

Permalink
src,ios: Fix iPhone SDK detection
Browse files Browse the repository at this point in the history
  • Loading branch information
shawwn committed May 3, 2019
1 parent 0e5171a commit 3ac3238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gyp/XCodeDetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def HasIPhoneSDK():

if 'HasIPhoneSDK' not in XCodeDetect._cache:
try:
out = run('xcrun', '--sdk', 'iphoneos', '--show-sdk-path')
run('xcrun', '--sdk', 'iphoneos', '--show-sdk-path')
XCodeDetect._cache['HasIPhoneSDK'] = True
except subprocess.CalledProcessError:
out = 1
XCodeDetect._cache['HasIPhoneSDK'] = out == 0
XCodeDetect._cache['HasIPhoneSDK'] = False
return XCodeDetect._cache['HasIPhoneSDK']

0 comments on commit 3ac3238

Please sign in to comment.