Newest 'ios-simulator' Questions

Q&A for professional and enthusiast programmers

Snags running Iphone simulator on Xcode 8.2.1

I am having problems running the iPhone simulator on Xcode 8.2.1, on MacOS Sierra 10.12.3. I read that this could be remedied by disabling the SIP on the cmd+R startup screen but this could affect ...

Can I reset all the simulator (and app) settings using the console command without restart the simulator?

I can reinstall the app, but I do not want to restart the simulator. So, I can not use these solutions: xcrun simctl erase {deviceId} or rm -rf ~/Library/Developer/CoreSimulator/Devices/* or ...

Debugging with cached NSUserDefault

Scenario: In my app, I have a background fetch process, that compares data from a web service with previously captured data from that same web service. Since the user of the app can force quit the ...

Xamarin can not deploy to iPhone as there is no Run option

My Xamarin project can build, but not deploy out to my iPhone as there is no Run option: How can this be alleviated?

Error shutting down simulator

In xcrun simctl documentation there is an entry: xcrun simctl shutdown booted - Shutdown a device Bun when I call it from command line, the simulator is not actually shut down but is freezed ...

Getting error “The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)” when running iOS simulator for the first time

Getting error "The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)" when running iOS simulator for the first time on a blank single view application. Any recommendations on ...

No build errors but crashes in simulator.

I get no build errors but once I am in the simulator and press the + in the top right corner to add new url the program crashes. This is the error I get: 2017-02-21 09:37:48.667 Favorite Websites[...

React Native Can't focus in TextInput

class Main extends Component { constructor(props) { super(props) this.state = { id: '', password: '', } console.log('yes') this....

NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB

I am working on updating an old iOS project from swift 1 to swift 3. I have some warnings still, but it can run on a simulator. The app gets stuck at the load screen and produces these 2 errors ...

Ambiguous use of subscript when attempting to use physical simulator

I am attempting to run my application on a physical device (iPhone 6+) and I keep getting this error message. Ambiguous use of subscript. When running the application on the simulator everything runs ...

NSURLSessionTask Never Calls Back When WiFi Off

When I turn off my WiFi connection and run the following code on the iPhone 6s 10.2 simulator, the callback is never executed. I expected the callback to fire fairly quickly with an error like "No ...

How to categorise NSLog into Error, Warnings, Message and Fault type in Objective C

We are developing iOS app. We want to create Custom Class of NSLog which will defines four type of message iOS App system like 1. Error 2. Fault 3. Info message 4. Warnings Is there some Apple ...

How can I see whether the Scan Credit Card feature is working in safari in iOS Simulator

I am trying to change a form that includes credit card input details so that when viewed on iOS it will give the user the option of scanning their credit card details (see below): However, the ...

Can´t Create New IOS simulator on Xcode

I have this fresh installation of Xcode and I´m unable to create new simulators, I press the button to create any new simulator but nothing happens. I´m new on MAC but I have some experience on linux, ...

Swift 3 Timers behaviour in XCode Simulator

I try to build an app based on a timer in Swift 3. When I run my app in Simulator I see that the timer is running even when the app is in background or screen is locked. In Reality (iPhone 7 & iOS ...

iOS dispatch_after is firing immediately

I am trying to fire an event after 6 seconds using dispatch_after. I'm firing a regular dispatch_after snippet (right built into Xcode itself). dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (...

why is Calendar.current.firstWeekday == 2?

In my playground, Calendar.current.firstWeekday == 1, which I interpret as "Monday is the first day of the week where I live (Sweden)" But when I run the simulator, Calendar.current.firstWeekday ...

The iPhone simulator in Xcode 8.2.1 runs a bit slow [closed]

I have noticed that when I launch the Xcode 8 iPhone simulator that actions that I make when using the simulator run incredibly slow, for example, when I maneuver to the home screen by clicking ...

setting GOOGLE_APPLICATION_CREDENTIALS for ios simulator

i m building an app which during the dev phase can be tested on the ios simulator on the mac. This app using google client api for java and service accounts approach. This as per the documentation ...

Xcode 8.2.1 iOS simulator slow

I bought a new mac book pro. System features: 2.0GHz dual-core Intel Core i5 processor, Turbo Boost up to 3.1GHz 8GB 1866MHz memory 256GB PCIe-based SSD Intel Iris Graphics 540 ...

New relic crash reporting not working with iphone simulator

Im trying to integrate New Relic crash framework with my ios app but it is not sending any crash report to New relic portal. I've already edited the scheme from Debug to release, followed next steps: ...

How can create simulator build of application which uses camera?

I have developed one application in which camera is used. App uses camera for video recording and also my app is totally based on camera. Now I have to submit app for Facebook review as I have used ...

iOS Simulator pinch gesture not working

I'm having trouble with the new Xcode simulator. I've looked this question up and got the same answer which won't work for me: Hold Option key and two circles will come up then click and drag. But ...

Safari getting launched on ios simulator, but not able to get url using driver.get(“”)

here is the code: ios simulator is getting launched, safari is also launched and "http://127.0.0.1:4723/wd/hub" navigates to the "let's browse" page, but then thats that, not able to navigate to "...

Notifications Not Showing on iPhone Simulator After Implementing Code Apple Provides

I have been attempting to get local notifications going within my code and have been having a problem with it showing up as an alert and in the local Notification Center. I've tried different codes ...

View is on top left on smaller devices Swift 3, xcode 8

When i run my app on a 6-7 plus its perfect but on smaller devices this happens Is there a reason this does this? please let me know! thanks :)

How can I programmatically detect when a new iOS simulator has started?

I currently have a Java program that has listeners to detect when an iOS or Android device has connected. For Android, I am using Android Debug Bridge's listener, which can detect when either a ...

How to create virtual printer with iOS Simulator?

In one of my application there is feature to print documents. I want to test this feature but I don’t have device, So I have to test on Simulator. With simulator how can I print documents. Do I need ...

Xcode Simulator keyboard slow to respond

I am getting this error in my debug window when using the keyboard in simulator mode. -[UIKeyboardInputManagerClient handleError:forRequest:] will retry sending handleKeyboardInput:keyboardState:...

Is there a way to just apply changes in iOS simulator without rebuilding the whole app?

I'm asking because this is a feature of android studio and was wondering if xcode or an external thing had something similar?

Keyboard warning in Xcode Simulator

I have recently started getting this warning in Xcode when working in Simulator mode. Apple were not able to help and suggested I submit a bug report, which I have done. But I wondered if anyone here ...

iOS Watch Simulator Crashes Mac

I've been fighting with this for a few days now. Whenever I run a watchKit App from the simulator my mac will get the black screen of death and reboot my machine. I am running XCode 8.2.1 running ...

Facebook share content is working in my simulator but not on my device

Hi I am new to swift 3 and Xcode 8 I have an issue with that my facebook share option with initial text content is working fine in my simulator which shows facebook post pop-up with content but not ...

How to test an iOS application on the CarPlay simulator

I am trying to develop an iOS application compatible with CarPlay. According to this post Is iOS CarPlay API Public? How to Integrate CarPlay?, I have to be enrolled with Apple’s MFi program, but I ...

iOS Simulator (Xcode) how to debug

I have an Ionic2/Angular2 app, that I build and run on iOS Simulator Version 10.0 (Xcode Version 8.2.1 (8C1002)) successfully. Question How do I set break points and debug my code? I have found two ...

Simulator quit unexpectedly while using the libswiftFoundation.dylib plug-in.- error popup

I have using Xcode - 8.2 and simulator - 7 plus. I have take screenshot from simulator, when using ⌘ + S and File->Save Screen short. Both cases in the simulator crashes and show popup alert popup of -...

react-native run-ios is having issues connecting to the iOS simulator

I'm having issues running my react-native app on the iOS Simulator. It runs fine on my Windows machine on the Android simulator, so I'm pretty sure it has nothing to do with my own code. The issue ...

Unable to determine device. when i tray to load simulator in xcode 8.2.1

[![image show all window for simulator][The error i got when i launch simulator. i think accidentally i removed some of folder or directory from ~library/Developer folder. ]][i installed new xcode8.2....

Remote Build problems using Visual Studio 2017. Error code 65

Our project is failing to run on iOS simulator in the new Visual Studio. This is the following error I get: Severity Code Description Project File Line Suppression State Error ...

Xcode iOS Simulator Questions

I have two questions about the iOS Simulator in Xcode for my Unity game: I am using latest version of all the software involved. 1) Why is it so slow? (I have tried the Cmd+T solution and it does ...

Xcode and iOS Simulator app has no connection

I have developed an app using Ionic2. I can run it in a browser and an Android Emulator with no problems. I have now deployed it to iOS Simulator (Xcode), and I get the following two issues (I am not ...

Make iOS Simulator smaller than 25% size?

Hey is there a way to make the iPhone 7 Plus Simulator smaller than what I can reach with CMD+5? The "smallest" option blocks more than half of my screen (see picture). I need it for development with ...

Is it normal for Xcode/Simulator to take up 15gb of space?

I got a disk almost full warning so I ran DaisyDisk.. Apparently Xcode is taking up 15gb of space: http://imgur.com/a/cTIZZ iOS device support is 12.3 gb: http://imgur.com/a/IcE5X I don't know if ...

WatchSimulator 3.1 SDK does not support x86_64 architecture?

This is the warning message appears when I compile my WatchKit 2 app ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator3.1....

Is there any program to test Android/ IOS apps for many devices on PC?

I want to test and see the results for many devices on Pc. But i don't want to use cloud systems.I want to download to PC.

React Native: Bizarre and sporadic :“TypeError: Network request failed” errors

After booting up my react native project, certain requests to my api were getting "TypeError: Network request failed" errors... didn't seem like there was any rhyme or reason to it. I hadn't run ...

Why am I getting an excessive delay when using asyncAfter for UIView animations on a device but not the simulator?

The code is roughly structured like this: The first function calls asyncAfter on the main queue, which after 0.5 seconds calls a presentation function The presentation function adds the subview and ...

How Do I Reset the Audio for iOS Simulator?

I have an audio software on my mac called Soundflower which I use to reroute audio between different music production software. Since switching my macbook's audio output from "Headphones" to "...

Local Notification gets fired even when remove app from simulator

i am implementing UserNotification in an app, Now the thing is that once i set a notification with repeat of every minute, it works fine. Once i remove app from simulator and install again, the old ...

How to install iOS5 simulator in xcode7.3.1?

I want to develop an iOS application also support in iOS5.I am going to develop in Xcode7.3.1.But I can’t find iOS5 simulator in Xcode7.3.1.Is it possible run iOS app with iOS5 simulator in Xcode7.3.1?...
Translating... 0%