首页 文章

我的应用无法在我的设备中启动?

提问于
浏览
2

我第一次遇到这个问题 . 我正在将我的应用程序运行到具有分发Ad-Hoc配置文件的设备,但我无法在设备中第一次启动应用程序,因为我不断收到此错误:

Mar  1 18:07:58 My-iPhon kernel[0] : launchd[276] Builtin profile: container (sandbox)
Mar  1 18:07:58 My-iPhon kernel[0] : launchd[276] Container:             /private/var/mobile/Applications/E142C3CE-F6E0-4C77-ABE8-1B764DA216FE (sandbox)
Mar  1 18:07:58 My-iPhon com.apple.debugserver-189[261] : 1 +0.000000 sec [0105/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 276, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 276, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Mar  1 18:07:58 My-iPhon mobile_house_arrest[280] : Max open files: 125 
Mar  1 18:07:59 My-iPhon com.apple.debugserver-189[261] : 2 +0.417620 sec [0105/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 276, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 276, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Mar  1 18:07:59 My-iPhon mobile_house_arrest[281] : Max open files: 125
Mar  1 18:07:59 My-iPhon mobile_house_arrest[282] : Max open files: 125

我启动后,应用程序崩溃,在设备控制台中我收到此错误:

Mar  1 18:11:44 My-iPhon backboardd[52] : BKSendGSEvent ERROR sending event type 50: (ipc/send) invalid destination port (0x10000003)
Mar  1 18:11:44 My-iPhon com.apple.launchd[1] (UIKitApplication:com.xxx.myApp[0x3077][276]) : (UIKitApplication:com.xxxx.myapp[0x3077]) Exited: Killed: 9
Mar  1 18:11:44 My-iPhon com.apple.debugserver-189[261] : 21 +216.166834 sec [0105/0303]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'failed to get the task for process 276'
Mar  1 18:11:44 My-iPhon com.apple.debugserver-189[261] : error: failed to launch process (null): failed to get the task for process 276
Mar  1 18:11:44 My-iPhon backboardd[52] : Application 'UIKitApplication:com.xxxxx.myApp[0x3077]' quit with signal 9: Killed: 9

但是,第三次正常运行!

我尝试了很多方法

  • 重新创建了我的配置文件,并为ad-Hoc分发提供了entitlement.plist

  • 我将方案的构建配置设置为debug,那么如何在我的设备上第一次运行我的应用程序时解决此错误

  • 我重新设置了我的设备

无论我尝试什么,我都会收到此错误!你能解释一下吗?

1 回答

  • 6

    您可以尝试使用开发证书 . 如果您在设备中安装IPA文件,它将正常工作 .

    当您要将应用程序上传到应用商店时,请使用Ad-hoc和分发配置文件 .

相关问题