Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not launch app, "process launch failed: Disabled"

Tags:

xcode

ios

xcode give me this error message when i run my project Try on ios device in my case mini ipad,

i am using code signe development

the device appers in the run list

the project setting is valid

the error :

error: failed to launch '/private/var/mobile/Containers/Bundle/Application/389D3AA9-DC56-4FD5-91CD-17C51C4E064A/Try.app' -- process launch failed: Disabled

any help please ?

like image 543
hany srour Avatar asked Nov 28 '22 01:11

hany srour


2 Answers

I had this same problem/error but it wasn't a provisioning profile issue. Unchecking the "Launch due to a background fetch event" box in the Edit Scheme menu fixed it for me.

uncheck this box

Step-by-step:

  1. In Xcode, click the button that includes your app's name that is to the immediate right of the Stop button
  2. Click "Edit Scheme..." in the dropdown menu
  3. Make sure "Run" is selected on the left and "Options" is selected at the top
  4. The Background Fetch box will be in the middle of the view

As Jesuslg123 mentioned below, it's reasonable to have this box checked if you wish to test your app's background functionality. Most users experiencing this problem however have likely checked it erroneously or have since disabled the corresponding background features for their app and forgotten to uncheck it (such as myself).

like image 186
Nathan Hosselton Avatar answered Dec 14 '22 03:12

Nathan Hosselton


If you're trying to debug background fetch, please, don't forget to enable it in

Target -> Capabilities -> Background Modes

like image 33
Yaroslav Avatar answered Dec 14 '22 03:12

Yaroslav