Skip to main content
Participating Frequently
January 21, 2013
Answered

How to access info.plist from generate .ipa file through actionscript?

  • January 21, 2013
  • 5 replies
  • 9439 views

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.

This topic has been closed for replies.
Correct answer

Try,

File.applicationDirectory.resolvePath("./Info.plist");

That should work.

5 replies

Colin Holgate
Inspiring
January 21, 2013

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?

Rdy076Author
Participating Frequently
January 21, 2013

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.

Rdy076Author
Participating Frequently
January 21, 2013

IS it really possible to access the Info.plist generated by SDK from actionscript?