Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions checkipa
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class IntegrityCheck(object):
'description': 'formatted incorrectly'})

if self.errors['appid_bundleseed_mismatch']:
appid_parts = self.profile['Entitlements']['application-identifier'].split('.', 1)
appid_parts = self.profile['Entitlements']['/out_'].split('.', 1)
appid_suffix = appid_parts[1]
bundleid_val = self.data['CFBundleIdentifier']
desc = 'BundleID "%s" does not match AppID "%s"' % (bundleid_val, appid_suffix)
Expand Down Expand Up @@ -233,10 +233,18 @@ class IntegrityCheck(object):

if 'CFBundleName' in self.data:
txt.append(' Name: %s' % (self.data['CFBundleName']))

if 'CFBundleIdentifier' in self.data:
txt.append(' BundleID: %s' % (self.data['CFBundleIdentifier']))
if 'CFBundleShortVersionString' in self.data:
txt.append(' Release Version: %s' % (self.data['CFBundleShortVersionString']))
if 'CFBundleVersion' in self.data:
txt.append(' Version: %s' % (self.data['CFBundleVersion']))

txt.append(' Build Version: %s' % (self.data['CFBundleVersion']))
if ('Name' in self.profile):
txt.append(' Profile Name: %s' % (self.profile['Name']))
if ('application-identifier' in self.profile['Entitlements']):
txt.append(' profile application-identifier: %s' % (self.profile['Entitlements']['application-identifier']))
else:
txt.append(' profile application-identifier: %s' % ("unknown"))
if ('ExpirationDate' in self.profile):
txt.append(' Expiration Date: %s' % (self.profile['ExpirationDate']))

Expand Down Expand Up @@ -282,6 +290,7 @@ class IntegrityCheck(object):

for line in txt:
print(' %s' % (line))


# end output_report

Expand All @@ -295,10 +304,11 @@ class IntegrityCheck(object):
self.check_bundle_id()
self.check_bundle_seed()
self.check_appid()
self.check_push()
#self.check_push()
self.check_dist_method()
self.check_dist_profile()
self.check_expiration_date()
# self.check_executable_size()

def check_expiration_date(self):
if ('ExpirationDate' in self.profile):
Expand Down Expand Up @@ -461,7 +471,8 @@ class IntegrityCheck(object):
elif 'ProvisionedDevices' in self.profile:
self.ipa_info['adhoc'] = True
else:
self.errors['distmethod'] = True
self.ipa_info['app_store'] = True
#self.errors['distmethod'] = True

def _initialize_results_data(self):
# All errors and warnings are to be declared here and set to
Expand Down