Reputation: 7487
Just wondering. Or is it even technically impossible to write me, e.g. because iOS may prevent jumps to the area where the unpacked code resides?
Upvotes: 3
Views: 1808
Reputation: 5050
Unpackers such as UPX need to place the unpacked image somewhere. If it is placed in memory, the CPU needs to start executing the instructions in the image, which was heretofore treated as data. IIRC, executing data isn't allowed by iOS.
Upvotes: 1
Reputation: 25318
You can't use it, iOS doesn't allow you to create executable pages or to run custom binaries from a file.
Upvotes: 2
Reputation: 10005
As far as i know, the compiled executable binary cannot be packed because it must be signed with Xcode and tools. After the deployment of signed code to a iOS device it cannot be modified in any way (only the OS can load it different to the RAM).
You can try to pack your resource files and load them in a different way.
Upvotes: 0