Catalina 4 Xcode 4 Beta Simulator won't load

I have just installed Catalina Beta 4 and Xcode Beta 4..


All went well.


Now when i try and test my Apps, not matter the size or even if it's a new one just created in eiither Swift or SwiftUI, the Simulator give me an Error.


Details


Could not attach to pid : “724”

Domain: IDEDebugSessionErrorDomain

Code: 3

Failure Reason: Error 1

--

Error 1

Domain: IDEDebugSessionErrorDomain

Code: 3

--


Any suggestions?


Running on a Macbook Air 2015, all was well with Beta 3 versions.


Cheers.


Craig.

Post not yet marked as solved Up vote post of Theshines Down vote post of Theshines
2.6k views

Answers

I'm in the exact same boat. Restarting, relaunching sims, removing derived data, no matter what I can't get Xcode beta 4 to attach a debug session to the sims.

Thanks for the reply..


What Mac are you running ?


Cheers.


Craig.

Craig:


What order are you using when you fire things up?


Are you running a build in Xcode 11b4 first and letting it call/open the sim? Opening the sim first, then Xcode, then building? ...?


Close everything down, reboot the computer and try starting & completely booting the simulator before Xcode, then build and see if still no joy out of the sim.


Be sure to have several tens GB free on your MB, BTW.

>Now when i try and test my Apps


iOS, WatchOS...?


Ken

Hi Ken,


Thanks for taking the time to reply.


Well.. i have tried everything.. I have been uing Xcode for around 4 years and all has been working fine.. Worked ok on Beta 3 (Xcode and Catalina).


I have rebooting my Mackook Air, checked Drive... Deleted Xcode, re-installed it..


Start a new Project SwiftUI "Hello World", works fine in the Canves but will not load in the Simulator..


Cleaned Build, Compiled ok.


Removed from Simulator.


Rebooted simulator.


Not sure what else to do.


I have around 53Gb free on my Macbook Air..


Any suggestions?


One question... How do you Open the Simulator before Xcode ??? ok.. Found it.



Cheers.


Craig

Theshines, can you try the following:


sudo DevToolsSecurity -enable


Re-kicking enabling Developer mode was the trick for me.

Thank you for the inputs...


However I found that the only way to get this to work is Erase the SSD and re-install Catalina Beta 4 and Xcode Beta 4 to get it to work.


So far it;s working.


Cheers.


Craig

Ouch - thanks for the followup, and good luck w/your apps.


Ken

Thanks Peter, this did the trick for me.

For me worked:

1. Edit Scheme

2. Run

3 uncheck "debug executable"

Peter,


I almost went insane over this problem. Your reply fixed the issue.


You made my day. Thanks!!

This worked for me! Thanks!!

Been racking my brain for 2 days and you solved it in 5 seconds! Thank you!