Skip to content

Commit 3ac3238

Browse files
committed
src,ios: Fix iPhone SDK detection
1 parent 0e5171a commit 3ac3238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gyp/XCodeDetect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def HasIPhoneSDK():
5858

5959
if 'HasIPhoneSDK' not in XCodeDetect._cache:
6060
try:
61-
out = run('xcrun', '--sdk', 'iphoneos', '--show-sdk-path')
61+
run('xcrun', '--sdk', 'iphoneos', '--show-sdk-path')
62+
XCodeDetect._cache['HasIPhoneSDK'] = True
6263
except subprocess.CalledProcessError:
63-
out = 1
64-
XCodeDetect._cache['HasIPhoneSDK'] = out == 0
64+
XCodeDetect._cache['HasIPhoneSDK'] = False
6565
return XCodeDetect._cache['HasIPhoneSDK']

0 commit comments

Comments
 (0)