Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

New Here ,
Jan 20, 2013 Jan 20, 2013

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.

TOPICS
Development
9.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jan 21, 2013 Jan 21, 2013

Try,

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

That should work.

Translate
LEGEND ,
Jan 20, 2013 Jan 20, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2013 Jan 20, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2013 Jan 20, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 21, 2013 Jan 21, 2013

Try,

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

That should work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2013 Jan 21, 2013
LATEST

Thank you neh, that works perfectly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines