When I try to run an app on an iPad or iPhone simulator prior to version 10 (i.e. 9.3), I get the message "Application launch failed. A connection to the system service could not be established." Has anyone successfully run an app on the non-ios10 simulators?
Xcode 8 beta 2 - can't launch app on simulators < iOS 10
Same issue here. I'm currently downloading the 9.2 sim which I didn't previously have installed to see if that's any better. I can handle debugging on 9.2 for a while if it works. Restart, clean build folder, reset sim, delete and recreate sim, etc didn't work.
I tried with the 8.1 simulator, the 9.0 simulator, and the 9.3 simulator, all with the same result. I have submitted bug report number 27180726.
EDIT: I should add that this in on OS X 10.11.5 with both Xcode 7.3.1 and Xcode 8 beta 2 installed.
Same problem with iOS Sim 9.2 downloaded using Xcode 8 Beta 2.
I'm running the macOS Sierra beta 2.
BTW the workaround seems to be to run the app manually on the simulator, then use Attach to Process on the Debug menu in Xcode. The app should show up under "Likely Targets" at the top of the list.
Thanks for that, I too have got this issue, I find I have to attach to the process everytime but can cope with it until BETA 3.
Confirmed. Thanks for the report and for mentioning the workaround above.
Working on a fix.
Changing the scheme from Launch "Automatically" to "Wait for executable to be launched" seems to work too and is slightly less annoying than having to Attach to Process every time.
EDIT:
This is not a good solution. Although Xcode does wait and automatically attach to the app when launched, the app in the simulator does not get updated when built.
I have tryed that and discovered after about 5 mins wondering why I was not getting the result from my app that it wasn't the latest build but the previous build still on the simulator.
What I had to do was go back to "Automatically" and remove the app from the simulator and then click the run icon, when I get "Application launch failed. A connection to the system service could not be established." I simple cancel and switch back to "Wait for executable to be launched" and run it again.
So is anyone else getting the same thing with using "Wait for executable to be launched" ?
Yes that actually explains why I wasn't hitting breakpoints in updated code. I gave up and went back to Xcode 7 for now.
Xcode8 BETA 2 should of not been released with this issue.
+1. Also here
same result here. Can´t install any device for simulator
Thank you for acknowleding this bug. Fix would be to wait for beta 3?
Printing to console works again, thank you. :-)
Yes, this was fixed in beta 3.