Question: I'm debugging C++ program compiled with MSVC under Windows.
I want to investigate issue linked with multi threading. So I put ASSERT in my code and when program reaches ASSERT it displays window about ASSERT (Standart [Abort], [Retry], [Ignore] window) with proposal to pause program in debugger. I press [Retry] button and program pauses. BUT while I was pressing the button other threads continue to execute. 
So the question is how to immediately stop the program when it reaches some point to see what other threads was doing at that time?

Answer: 
Select Device in-place of Simulator and then make Archive .

[![enter image description here](https://i.stack.imgur.com/1yhgt.png)](https://i.stack.imgur.com/1yhgt.png)
select device as Generic IOS Device in devices tab

Goto Project -> Archive -> building of your project start after this organiser window will open 
in organiser window there is an option "Export" click on that and save your IPA on to your location