読者です 読者をやめる 読者になる 読者になる

Q: Xcodeビルドして実機デバッギはじめると "The program being debugged is not being run." とかでて即終了してしまうよ!

A: 1. 構成が Debug 以外になっている

アドホックバイナリをそこいらの端末へばらまきながら作業しているとやりがち。

参考

The app is installed, but it does not start. On the console, I see the following message:

Error launching remote program: failed to get the task for process 82.
Error launching remote program: failed to get the task for process 82.
The program being debugged is not being run.
The program being debugged is not being run.
iPhone Debugging: How to resolve 'failed to get the task for process'? - Stack Overflow

The ad-hoc profile doesn't support debugging. You need to debug with a Development profile, and use the Ad-Hoc profile only for distributing non-debuggable copies.

A: 2. プロビジョニングファイルの期限が切れている

"Error launching remote program: security policy error." とでるみたいなのでそれで判断できるはず。