Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone device vs. iPhone simulator

Tags:

iphone

I have heard of apps not working properly on the simulator but working properly on the actual iPhone device. Has anyone experienced an app that runs perfectly in the simulator but not on the actual iPhone device?

like image 448
user21293 Avatar asked Dec 19 '08 03:12

user21293


People also ask

Is there a iPhone simulator?

While built-in simulators are Xcode and TestFlight. Other options are online iOS simulators like LambdaTest if you want to test your iPhone web and native apps on the cloud.

Is iOS simulator like the hardware?

An iOS Simulator basically mimics an iOS app or browser on top of a developer's operating system. This is viewable in an iPad or iPhone like window. They cannot virtualize the actual hardware conditions of an iOS device, which is the main requirement for comprehensive testing and debugging.

Does iOS simulator simulate performance?

The simulator does a really lousy job of indicating app performance. In fact it doesn't try. For most things the simulator is much, much faster than an iOS device. It runs your code on an x86 processor, which is much faster than the ARM and has many times more memory.

How do I use iPhone simulator?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.


1 Answers

Filenames are case-sensitive on the iPhone, but not in the simulator.

So, for example, if you try to load an image with UIImage *iconImage = [UIImage imageNamed:"MyIcon.png"], but your resource is actually named "myicon.png", then it will work on the simulator, but not on the device.

like image 124
Kristopher Johnson Avatar answered Sep 20 '22 22:09

Kristopher Johnson