Can a user take a resource from iPhone Apps?

I know that the .app file of an Apple Mac file is a collection of programs and data. I am an iPhone guest like this way. I can unzip Mac OS.app to find resource, images using this way. Can an iPhone app do this? I mean, can the user unzip the iPhone.app to get the resource / img? THz.

+2


a source to share


3 answers


Yes. They are definitely viewable, with a little extra effort.

Unpacking the ".ipa" file gives you all the .png and .nib resources. .Png files are encoded using a non-standard format ( described here ) so you cannot open them directly, but this same page also points to a tool to convert them to standard .png files.

Nib files are more problematic as described in this question :



It is technically possible to instantiate a knife and derive most of the information from it, but it is non-trivial and will not lead to anything like using an interface builder

Note that signatures have nothing to do with this: the application signature detects if any of the resources have changed, but the signature is not the reason the resources are not (conveniently) openable: signing the application doesn't change the format of the underlying resources.

Apple presumably chose these formats to optimize load times - for conveniently displaying images from another app was probably not the design goal :-)

+2


a source


The .ipa file can be unpacked and the resources are viewed, but as they are signed, it won't work if you change anything. However, PNGs are encoded differently and nibs are compiled, so they are not viewable with normal tools.



+1


a source


All resources are signed, which makes them unprivileged for the normal user when the application is unpacked.

However, I would not be surprised if it was easy to fix.

-2


a source







All Articles