130

The IOS simulator in my computer doesn't have app store. I want to use the app store to test a program I wrote on my simulator.

Is it possible to install the app store in my simulator?

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
William
  • 1,305
  • 2
  • 9
  • 8

3 Answers3

156

This is NOT possible

The Simulator does not run ARM code, ONLY x86 code. Unless you have the raw source code from Apple, you won't see the App Store on the Simulator.

The app you write you will be able to test in the Simulator by running it directly from Xcode even if you don't have a developer account. To test your app on an actual device, you will need to be a part of the Apple Developer program.

squgeim
  • 2,321
  • 1
  • 14
  • 21
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • 8
    So if I need to know weather my app can open the appstore properly or not, I have to test it in real device? – William May 16 '12 at 02:42
  • 11
    Yes, if you are going to have your app open the App Store, then you would want to test it on an actual device. – WrightsCS May 16 '12 at 02:50
  • 2
    We can't install app store apps in simulator. This is updated link of apple doc https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/InteractingwiththeiOSSimulator.html – RohitK Apr 13 '15 at 06:27
  • 3
    @Rohit link is dead – Brian Jul 06 '16 at 14:27
  • 3
    Quick search turns up this updated guide on the Simulator: https://developer.apple.com/library/prerelease/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/Introduction/Introduction.html – WrightsCS Jul 06 '16 at 14:50
  • 12
    And what about on an ARM-powered Mac? – hippietrail Dec 05 '20 at 04:34
  • 5
    It correct that it's not possible, but the reason why it's not possible turns out to have nothing to do with Intel x86 code vs ARM code, as [it's also not possible on Apple's new M1 ARM macs](https://apple.stackexchange.com/a/408129/11513). – hippietrail Feb 24 '21 at 06:02
  • I assume this is out of date now that we have M1 macs? don't they run the same object code as iPhones? – dcsan Sep 10 '22 at 06:30
  • @dcsan good point, but I think Apple intentionally doesn't want the iOS app store app running on anything other an an iOS device. Alternatively, they may have made available all of the iOS apps in the Mac app store as well, or will eventually once all intel machines are phased out. – WrightsCS Oct 14 '22 at 16:00
  • you can install many iOS apps on desktop. i'm not sure if one has to add an extra target at dev time tho – dcsan Oct 17 '22 at 06:23
25

No, according to Apple here:

Note: You cannot install apps from the App Store in simulation environments.

dumbledad
  • 16,305
  • 23
  • 120
  • 273
Khawar
  • 9,151
  • 9
  • 46
  • 67
  • 3
    The link here and in the comments on WrightsCS answer all go to the base "Simulator Help" page now, so pretty much not helpful. – Dale Mar 10 '19 at 17:58
6

You can install other builds but not Appstore build.

From Xcode 8.2,drag and drop the build to simulator for the installation.

https://stackoverflow.com/a/41671233/1522584

Community
  • 1
  • 1
Abhijith
  • 3,094
  • 1
  • 33
  • 36