XCode fails to run app on device, saying the program being debugged is not being run

前端 未结 14 974
轻奢々
轻奢々 2020-12-14 16:35

I\'m running Xcode, trying to get my app to run on my iphone. I\'m getting the error message \"the program being debugged is not being run.\"

14条回答
  •  醉梦人生
    2020-12-14 17:21

    I just had to power off my iPhone device and restart the same.

    I tried in this order:

    1. Delete app in Xcode.
    2. Delete build folder in Finder.
    3. Restart device.

    Only 3. worked for me.

    imp: My Provisoning profiles are valid for almost a year and there was no reason for them to expire (I even cross-checked them to be doubly sure :)). If this hadn't work, I would have checked - as someone rightly suggested, if Developer provisioning profile was being used - which was, in my case.

提交回复
热议问题