Skip to content

Commit

Permalink
Remove 3.2.2.GA reference and fix condition
Browse files Browse the repository at this point in the history
Remove the 3.2.2.GA forced SDK parameter and fixed condition to check for appropriate key in the info returned json array
  • Loading branch information
thisishuey committed Mar 19, 2014
1 parent e9e3a38 commit 4b76440
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Titanium.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ def select_ios_profile(self, select):
self.run_titanium(options)

def load_ios_sdk_info(self):
process = subprocess.Popen([self.cli, "info", "--types", "ios", "--output", "json", "--sdk", "3.2.2.GA"], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
process = subprocess.Popen([self.cli, "info", "--types", "ios", "--output", "json"], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
result, error = process.communicate()
info = json.loads(result.decode('utf-8'))

if info['ios'] is None:
xcode = info['xcode']
else:
if 'ios' in info:
xcode = info['ios']['xcode']
else:
xcode = info['xcode']

for name, obj in list(xcode.items()):
self.sdkvers = sorted(obj["sdks"], reverse = True)
Expand Down

0 comments on commit 4b76440

Please sign in to comment.