Sometime before everything works fine & running project but right now I am getting issue that request to open App failed
.
Does anyone have an idea to fix this and why does this issue occurs?
Sometime before everything works fine & running project but right now I am getting issue that request to open App failed
.
Does anyone have an idea to fix this and why does this issue occurs?
Cause
Might be you have run different the project sometime before on assume iphone 6s Plus & without closing it or you left it is in the background & now if you are trying to run another project on iphone 5s it's a cause i believe you are facing this issue.
Fix
Just quit simulator & run your project again resolved your issue.
More solutions,
There is no exact reason why this problem occurs. I've analyzed occurance of this problem can be anyone of following:
- Change in bundle identifier for existing project (running in device or simulator)
- Last running build was not stopped properly or last running build is busy in background.
- Your system/Xcode performing too slower (may be due to Project size or system configuration) and it takes too much time to run your project/build
Here are few steps to solve this (Any one or all of these works)
- Clean your XCode
- Clean up project cache and other backup files from Library (It's not user library, press alter option/button keyboard and Click on 'Go' menu of finder) >> Developer >> "Project" directory
- Remove existing build from Device/simulator
- Restart your simulator or device.
- Restart system (Shutdown and again start after few seconds)
This will solve your problem.
Use
xcrun simctl list
to get the list of all simulators
And then
xcrun simctl erase all
to reset all the simulators i.e to remove all the data.
First quit the simulator then use this command otherwise you will get an error like this "An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163. Unable to boot device in current state: Booted"
I have had this happen a few times. I ran xcrun simctl erase all
and reset all my simulators and it fixed it. I think sometimes, if you are switching devices in the simulator, it gets stuck in certain states. Make sure the simulator is quit before running the command in Terminal.
Do this below simple step
Product > Scheme > Edit Scheme >Run >Info > Build Configuration > debug mode