Questions tagged [ios-simulator]

The iOS Simulator application presents the iPhone or iPad user interface in a window on the computer to emulate iPhone or iPad devices. This application provides several ways of interacting with it by using the keyboard and mouse to simulate taps, device rotation, and other user actions.

The allows you to execute your app on your computer. You get several real interactions: switching screen orientations, simulating memory warning, adding a second display to your device. iOS Simulator can simulate many devices ( 4s, 5, 6, 6+, 7, 7+, 8, 8+, and ) and several iOS versions (, ). iOS Simulator doesn’t simulate accelerometer, camera hardware and airplane mode.

The iOS simulator is packaged with and allows developers to test and debug in an environment.

5974 questions
821
votes
19 answers

Xcode 6: Keyboard does not show up in simulator

The keyboard does not show up when I run the simulator and click in the UITextView. How do I re-enable the keyboard? It used to work but now it doesn't - I don't know what I might have clicked by accident.
Katsu
  • 8,479
  • 3
  • 15
  • 16
574
votes
21 answers

Is it possible to disable the network in iOS Simulator?

I am trying to debug some inconsistent behaviour I am seeing in an application that gets its primary data from the Internet. I don't see the issues in the simulator, just on the device, so I'd like to reproduce the network and connectivity…
Paul Hammond
  • 6,226
  • 3
  • 17
  • 10
529
votes
20 answers

Take screenshots in the iOS simulator

I want to take a screenshot of my iOS application when it is running in the simulator, and save the screenshot on my Mac. How can I do this?
Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188
499
votes
25 answers

Capture iOS Simulator video for App Preview

Okay, so we can now submit video previews of our apps on the App Store. According to Apple we should do so with an iOS8 device and OSX 10.10. The problem is you have to have all the different devices (4", 4.7", 5.5" and iPad). Is there an…
AXE
  • 8,335
  • 6
  • 25
  • 32
467
votes
17 answers

Error Running React Native App From Terminal (iOS)

I am following the tutorial on the official React Native website. Using the following to build my project: react-native run-ios I get the error: Found Xcode project TestProject.xcodeproj xcrun: error: unable to find utility "instruments", not a…
JacobSiegel
  • 5,311
  • 2
  • 14
  • 17
384
votes
7 answers

How to use dark mode in simulator iOS 13?

While I am developing the iOS app I need to test it in simulator with dark mode option so I can get more clarity about the app UI. But when I go to the Setting I am not getting option for dark mode as real device showing.
Mr.Javed Multani
  • 12,549
  • 4
  • 53
  • 52
372
votes
31 answers

Error when testing on iOS simulator: Couldn't register with the bootstrap server

I was testing my app on the simulator when it crashed on clicking a button of a UIAlertView. I stopped debugging there, made some changes to the code and built the app again. Now when I run the application, I get this error in the console Couldn't…
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
368
votes
61 answers

Message "flutter run: No connected devices"

I am trying to create a sample application with Flutter (fresh installation). Android Studio is also installed (fresh installation). Here is the output of flutter run flutter run No connected devices. The output of flutter doctor: Doctor summary…
348
votes
29 answers

The iOS Simulator deployment targets is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1

I'm getting this below warning message in my Xcode 10.1. The iOS Simulator deployment targets are set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. My simulator os in 12.1 Xcode 10.1 And I updated…
Naresh
  • 16,698
  • 6
  • 112
  • 113
346
votes
5 answers

Bluetooth headphone music quality deteriorates when launching iOS simulator

The situation goes a little something like this: I am programming Xcode whilst concurrently listening to music on my Bluetooth headphones... you know to block out the world. Then, I go to launch my app in the iOS simulator and BOOM all of a sudden…
world
  • 3,932
  • 2
  • 10
  • 12
339
votes
14 answers

iPhone Simulator suddenly started running very slow

I have been working on an app in iphone simulator for a number of weeks and it has been running well up until now, but all of a sudden has begun running very slow both when loading content and animations. I have not made any changes to my code since…
Finglish
  • 9,692
  • 14
  • 70
  • 114
312
votes
35 answers

Adding images or videos to iPhone Simulator

I am trying to use UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says, "No photos". Where does the simulator get the images from? Where should I copy the images so that they are displayed in the simulator?
Vijayeta
  • 5,585
  • 5
  • 21
  • 11
308
votes
16 answers

How can I get the console logs from the iOS Simulator?

I want to see what happens in the iOS Simulator if I'm not testing the app in Xcode. For example, if I open a link in the Safari simulator, see what happens in the console, or if I install a web-app, see the links that I'm pressing in console. How…
user1335015
  • 3,081
  • 2
  • 14
  • 7
294
votes
21 answers

How can I programmatically determine if my app is running in the iphone simulator?

As the question states, I would mainly like to know whether or not my code is running in the simulator, but would also be interested in knowing the specific iphone version that is running or being simulated. EDIT: I added the word 'programmatically'…
Jeffrey Meyer
  • 5,410
  • 7
  • 30
  • 27
290
votes
28 answers

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost."

I have an application which works fine on Xcode6-Beta1 and Xcode6-Beta2 with both iOS7 and iOS8. But with Xcode6-Beta3, Beta4, Beta5 I'm facing network issues with iOS8 but everything works fine on iOS7. I get the error "The network connection was…
VoidStack
  • 3,038
  • 2
  • 14
  • 10
1
2 3
99 100