Copy link to clipboard
Copied
Hi All,
Is there any way to access Info.plist from the .IPA generated(I created IPA file from .SWF using ADT command).
I am trying
var prefsFile:File = File.applicationStorageDirectory;
prefsFile = prefsFile.resolvePath("/Applications/Info.plist");
textId.text += prefsFile.exists + " ";
I am getting result as false.
Actually I need to get all the values of Info.plist information in string format from the generated .IPA.
Try,
File.applicationDirectory.resolvePath("./Info.plist");
That should work.
Copy link to clipboard
Copied
An IPA is just a ZIP file, if you decompress it you can look into the .app's contents, and the info.plist is there to be opened. I suspect that it's used by iOS to know how to install the app, I'm not so sure that it's still in place after the install.
What's the problem that you're trying to solve this way?
Copy link to clipboard
Copied
Hi Collin,
The purpose is to get all the information from Info.plist from actionscript. I need to access all the information from Info.plist: like CFBundleVersion , CFBundleInfoDictionaryVersion which are all 'Reserved iOS InfoAdditions settings'(which are all auto generated). If I unzip the .IPA I can see Info.plist file with all these information. So I need to access all the values of Info.plist in dictionary format. Hence I am trying the access Info.plist by using ‘File.applicationStorageDirectory', but I am not able to get the file path.
Copy link to clipboard
Copied
IS it really possible to access the Info.plist generated by SDK from actionscript?
Copy link to clipboard
Copied
Try,
File.applicationDirectory.resolvePath("./Info.plist");
That should work.
Copy link to clipboard
Copied
Thank you neh, that works perfectly.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now