MrMage
MrMage

Reputation: 7487

Are there any executable packers (like UPX) for iOS?

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

Answers (3)

Paul Lalonde
Paul Lalonde

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

JustSid
JustSid

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

Jonas Schnelli
Jonas Schnelli

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

Related Questions