Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to test iPhone applications which you downloaded from iTunes Store in the iOS Simulator?

share|improve this question

migrated from superuser.com Feb 6 '11 at 2:47

This question came from our site for computer enthusiasts and power users.

3 Answers 3

up vote 7 down vote accepted

Afraid not. The simulator runs on x86 architecture and the iPhone apps are published to run on ARM.

share|improve this answer
    
Why is this being voted up? If the answer as stated were really that simple, then nothing would run in the simulator, even apps that are being tested by a developer. The Simulator emulates a physical iPhone as much as possible, but there are a variety of limitations. –  Philip Regan Feb 6 '11 at 14:14
2  
@philip true, but yours ain't much better as an answer to this question. IMHO the best answer would be "yes, here's the hack" and the second best would be "no, there's no hack to do it yet" from someone who have actually looked hard for it. –  Cawas Feb 6 '11 at 15:33
    
@Cawas: Fair enough. I have updated my answer to include information related to actual goal of the OP. –  Philip Regan Feb 6 '11 at 15:56

That is not the intended purpose of the iPhone Simulator. The purpose of the iPhone Simulator is to give developers a convenient testing platform for the application they are developing in those cases where a physical iPhone isn't readily available. It is currently not possible to install applications compiled by other developers within your own iPhone Simulator.

As for testing apps, The App Store does not support demo versions of software or a way to "try before you buy" akin to shareware. The closest developers can get to that paradigm is by offering a "lite" version of their app for free and then a separate, full version for purchase.

share|improve this answer
    
I always considered iPhone Simulator to just (intended to ) be a more practical and faster way than using a physical iPhone. But thinking of your way the question would be even more valid - Suppose we don't have an iPhone. How would we go on and use the Simulator to run the app? –  Cawas Feb 6 '11 at 16:22
    
@Cawas: I have updated my answer to include that scenario as well. But, to be clear, the iPhone Simulator is designed for the singular purpose for a developer to conveniently test an application they are building. It does one thing and one thing only. –  Philip Regan Feb 6 '11 at 16:26
    
that's where a hack would come in! unlikely to become as legal as jailbreaking an iphone, but still I doubt it would be as illegal as pirating or stealing. –  Cawas Feb 6 '11 at 16:28
    
@Cawas: If there is a hack, I don't know one, so I didn't include it in my answer. Even if I did, I wouldn't include it because I don't agree with hacking or jailbreaking being a software developer myself. Never make assumptions about the App Store software license for users or developers. It is very comprehensive. –  Philip Regan Feb 6 '11 at 16:31

No.

iPhone apps meant for an iOS device or App store are compiled by Xcode completely differently from the apps meant for the iOS Simulator (from the same source code, so this Simulator is only good for testing the source, not the App store binary). Completely different and incompatible instruction sets, so no simple hack is possible.

Added:

In addition, apps downloaded from the App store are partially encrypted, so that only an actual device can see the all executable code at all.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.