4

Sometime before everything works fine & running project but right now I am getting issue that request to open App failed.

enter image description here

Does anyone have an idea to fix this and why does this issue occurs?

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
  • I misread the image message. I have removed the duplicate flag, but check if this thread can help with any of the issue even tho it is different error log it might be related solutions: http://stackoverflow.com/questions/39495620/xcode-8-error-denied-by-service-delegate-sbmainworkspace –  Feb 25 '17 at 04:46
  • Is it on a device or the simulator? – Siriss Feb 25 '17 at 04:51
  • hey i got that quit simulator works for me but still i didn't understand clearly why does this issue occurs evrytime? –  Feb 25 '17 at 04:53
  • @Siriss its occurs on the simulator. –  Feb 25 '17 at 04:54
  • That moment when you censor out the app name but forget to censor out the other app name – geoff Nov 30 '20 at 22:01

5 Answers5

4

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,

xcode 8 error denied by service delegate (SBMainWorkspace)

Community
  • 1
  • 1
Mukesh Lokare
  • 2,159
  • 26
  • 38
  • exactly sir i did same thing on my xcode. You mean am i need to close prev. running project before running another project right? –  Feb 25 '17 at 05:30
1

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.

Krunal
  • 77,632
  • 48
  • 245
  • 261
  • hello sir i don't have changed the bundle identifier but its look like might be your second points matched my case. –  Feb 25 '17 at 05:28
  • 1
    Please don't call sir, we are all here friend, and together here to help each other. You may be facing this problem because any one of reasons that i've mentioned here as there is no exact reason for occurance of this issue for latest Xcode. Follow resolution steps i mentioned here, you will solution from any one step of them. –  Feb 25 '17 at 05:34
1

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"

kautikmistry
  • 686
  • 6
  • 10
0

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.

Siriss
  • 3,737
  • 4
  • 32
  • 65
  • 1
    `xcrun simctl erase all` is this command i need to run from terminal? is there need to set path on terminal before fire this command? –  Feb 25 '17 at 05:34
  • Yes that is the command. You don't need to specify a path to run it. – Siriss Feb 25 '17 at 05:35
0

Do this below simple step

Product > Scheme > Edit Scheme >Run >Info > Build Configuration > debug mode

Kiran K
  • 919
  • 10
  • 17