Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ If you run it, it will display the contents of the mobile provision file:

$ python mobile_provision.py app.mobileprovision

or
your can try 'uuid' to get uuid in mobileprovision file
$ python mobile_provision.py app.mobileprovision uuid

[mobile provision]: http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html

update_strings.py
Expand Down
11 changes: 11 additions & 0 deletions mobile_provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ def main():
logging.error(exc)
return 2

if len(sys.argv) > 2:
if not sys.argv[2].islower():
logging.warning("warning:key argurment should be lower, %s -> %s",sys.argv[2], sys.argv[2].lower())
pl_dict_key = sys.argv[2].lower()
try:
print '%s: %s' % (pl_dict_key, getattr(mobile_provision,pl_dict_key))
except AttributeError:
logging.error('"%s" key not in your mobile provision file! \ntry this key:\n %s', pl_dict_key,
[att for att in dir(mobile_provision) if str(att).find('__') == -1])
return 0

logging.debug('Name: %s', mobile_provision)
logging.debug('UUID: %s', mobile_provision.uuid)
logging.debug(
Expand Down