Iphone simulator not reset it's content.How to reset it? - ios

I'm using xcode 8 it works fine but when I try to reset simulator using
In the iOS Simulator, press iOS Simulator in the menu at the top of the screen,
and press 'Reset Content and Settings...'. This should clear the entire simulator.But it gives below error.
Then i try using Terminal and get same error like below
Please help me with this issue thanks in advance.

May be its not the answer you expect, However it will help you when you not get proper answer.
Delete that simulator from Xcode-> Window-> Devices and add new simulator of same target.
I hope may be it will work like we reset the simulator.

Related

Keyboard gets stuck in ios 13 simulator

I have been trying to make my project work with the new Xcode 11. Everything works smoothly, except on several occasions when I run my app on the simulator (iPhone 11 Pro Max), the app freezes after I click on EditTexts. This happens after a few times I have used the app. If I clear the simulator memory and restart everything works normally.
I created a view controller with just the EditText and am able to replicate the simulator freezing. Sometimes it freezes before launching the soft keypad, sometimes after it has been displayed. I am still able to kill the app and rerun it through Xcode but it freezes every time unless I do hardware reset on simulator.
I am just concerned if this would happen on the device too? Has anyone faced this?
Edit: Just to add. When this happens, I try to use the messaging app and the same thing happens there.
Same problem on Xcode 11.0 and simulator with iOS 13/iPhone 11.
For me, the workaround of disable "automatically paste" don't work.
The only way is to restart simulator.
This thread is open on Apple Forum [https://forums.developer.apple.com/thread/122972]
The only fortunate solutions is to restart the simulator.
I had the same problem. Apparently it's a bug on the Simulator. Hopefully it will be solved soon, but until then, you can fix by unchecking the pasteboard option.
Simulator -> Edit -> Automatically Sync Pasteboard.
From this helpful answer here.
This is happening to me as well. This is a bug with the current release of Simulator.
When i click on textfield, app freeze and stop working. This problem still exists on Xcode 11.1 The solution is:
"Hardware -> Restart"
Then running normally. Try this.
Force quit the simulator and restart again works for me.
Same happens even in built-in apps on iOS 13 Simulator in the moment when you about to start typing :facepalm: Initially I thought that happened because I included new framework and had no clues what's going on but then found this :)
Please do not change your code it's not your code issue, its simulator bug.... So try to restart the simulator or stop the application and run again.
It will work fine on your device.
On Mac Catalina with Xcode 11.4 I tried this:
From simulator, toolbar choose I/O then Keyboard then Toggle Software Keyboard
Or
Simply hit Command + K while cursor placed in text Field.
Also have the same problem. When I restarted the simulator after it got stuck it haven't happened again. Seems like it is a simulator bug and not an app issue - https://forums.developer.apple.com/thread/122972
Its happening when pickerView appears as well, unfortunately have to restart simultor again.
If your are working on the iOS Simulator than simpley Restart your simulator & * Kill the Metro *
and run the react-native run-ios again.

Select simulator or iOS device for testing on Xcode not appearing

My Xcode 6.4 isn’t showing up the option next to run button to select any simulator or physical device.
I know I can select any iOS device or simulator from the below menu but I would love to bring that option back.
This is discussed here not able to select ios device or ios Simulator for running the project but doesn’t reply to my question.
How can I bring that back?
Stretching Xcode’s window in horizontal position will solve the problem.
Don't worry.Sometimes it happens. You can resolve by creating new Schema also.

Not found iOS Simulator in Xcode6.4

I updated Xcode version to 6.4.
Then I deleted all files in /Users/my/Library/Developer/CoreSimulator/Devices.
At first it worked, but now there is no simulator I can switch except my iPhone.
Take a look a picture.
Once I deleted a device file:
/Users/my/Library/Developer/CoreSimulator/Devices
during working simulator.
Is it a cause?
Anyone knows solutions?
Looks like all of your development devices are just not created.
To add devices you want to set the destination to, or output device, on the menu bar: Window > Devices. Then at the bottom left corner there is a add button, there you will create a simulator.

Watch simulator buttons seems disabled

I'm new in Apple Watch and I'm trying to create the first App with XCode6.3. In my Watch storyboard I put a button but when I run the App in the simulator I can't tap the button and seems disabled... what's happen?
Having similar issue... Sometimes only a portion of the WKInterfaceButton is clickable. Forced to revert back to Xcode6.2 beta5...
I returned to the previous beta of Xcode and now is all OK. The simulator works fine. Probably for some strange reason in my mac the simulator of Xcode 6.3 doesn't work correctly.
Thank to all

How can I choose an iOS simulator as the destination in Xcode?

I am an iOS noob. I had a project running on the iPhone simulator in Xcode 4.4. To resolve a different issue, I un-installed 4.4 and then installed 4.5.1. Now when I try to run my project on the simulator I get an error "Xcode cannot run using the selected device: No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."
How do I choose an iOS simulator as the destination?
Where do I click?
There should be a menu in the top left region of the toolbar section of the IDE. It should have a run button, a stop button, and then the name of your app and a label saying IOS Device. Click view-->show toolbar if you don't see it. Click on IOS Device and you should get a drop down menu of devices. The simulator should be in that list.
This should do it, its very simple actually
Just in case anyone finds this helpful --
Sometimes your version of xCode doesn't support the deployment targets.
My iOS simulator did not show up as a destination until I set the deployment target down to 7.0 (it seems like 7.1 may not be supported by xCode 5.0, but only 5.1 [not confirmed]).
Hope that helps if anyone stumbles across it.
For me the problem was that the selection in the toolbar only shows up for a certain width of the XCode window
I was able to add devices to the Simulators list by clicking on Window->Devices (Shift+Command+2), and clicking on the + at the bottom left to add Simulators.
After you click on Create, the device(s) will show up
Make sure to set Supported Platforms correctly
I had the same issue. The simulator would run a different device than chosen in the size field under "Simulated Matrix".
I dug around and found in Xcode's menu: Product/Destination. screenshot I was then able to run the simulator for the correct size.
Hope this helps !!

Resources