Error Domain=NSURLErrorDomain Code=-1005 “The network connection was lost.”
Restarting the simulator fixed the issue for me.
Restarting the simulator fixed the issue for me.
Already asked, but with a very different title. What #defines are set up by Xcode when compiling for iPhone I’ll repeat my answer from there: It’s in the SDK docs under “Compiling source code conditionally” The relevant definition is TARGET_OS_SIMULATOR, which is defined in /usr/include/TargetConditionals.h within the iOS framework. On earlier versions of the toolchain, … Read more
iOS Simulator > Menu Bar > Debug > Open System Log Old ways: iOS Simulator prints its logs directly to stdout, so you can see the logs mixed up with system logs. Open the Terminal and type: tail -f /var/log/system.log Then run the simulator. EDIT: This stopped working on Mavericks/Xcode 5. Now you can access … Read more
Explain step by step of Airsource Ltd’s answer for adding image to simulator: Drag it to simulator, then Safari opens (or browse to the Image in the internet using Safari) Hold your click on the image When the pop-up appears, choose Save Image and enjoy 😉 Update: for iOS Simulator 4.2, do these steps twice … Read more
You can set up your podfile to automatically match the deployment target of all the podfiles to your current project deployment target like this : post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘9.0’ end end end
In the iOS simulator, at the bar on the top, click on Debug → Toggle Slow Animations (or Slow Animations with Xcode 10+). Chances are you accidentally toggled it on.
I’ve managed to fix it, and it actually seems to be a microphone issue. Go to System Preferences -> Sound, select the Input tab and set Internal Microphone as the input (mine was set with my headphones’). Crappy sound goes way after that =) EDIT (May 30 2018): I’ve found out an easier way to … Read more
In Settings, scroll down to Developer and then Dark Appearance… Update In addition to the above, there are now many other ways to enable dark appearance in the simulator, as shown in the many great answers below. • Change Environment Overrides from Xcode (@AshCameron) • Toggle Appearance ⇧⌘A from the Simulator menu (@Shredder2794) • Update from the … Read more
Flutter supports both iOS and Android device/simulators. In the terminal, run the flutter devices command to verify that Flutter recognizes your connected Android device. Here is a reference document on how you can set up a device/simulator to run your application. For, Android (on a Mac system) Set up your Android device To prepare to … Read more
status: this has been seen as recently as Mac OS 10.8 and Xcode 4.4. tl;dr: This can occur in two contexts: when running on the device and when running on the simulator. When running on the device, disconnecting and reconnecting the device seems to fix things. Mike Ash suggested launchctl list|grep UIKitApplication|awk ‘{print $3}’|xargs launchctl … Read more