process launch failed: failed to get the task for process 28107

本文解决了一个常见问题:在真机上调试代码时遇到失败提示。文章指出,在代码签名设置中使用了发布证书而不是调试证书导致了该问题,并指导读者如何正确配置以进行调试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

down vote accepted

I am betting that your release mode includes compiling with your distribution certificate, which disallows this behavior (you wouldn't want some random fool hooking into your app after downloading it from the app store). Compile with the development certificate instead. You can change this in the building settings under code signing.

遇到的问题:我想在真机上调试代码。但是报错提示:process launch failed: failed to get the task for process 28107

错误原因就是上面英文说的:

大意就是:code signing下面用的是distribution certificate(发布的证书),如果要调试的话,应该用 development certificate(调试的证书),





                
class ManagementRequestHandler(RequestHandlerBase): def __init__(self, processmanager_state, queue_lock, payload): super().__init__(processmanager_state, queue_lock, payload=payload) self.payload = payload self.set_result_dir(domain=Domains.GENERAL) self.reportportal.set_domain(domain=Domains.GENERAL) self.environ = self.reportportal.attach_rp_listener_config_to_environment(self.environ) self.attach_additional_vars() self.logging_domain = "REQUESTHANDLER-MANAGEMENT" self.ssh_client.close() def attach_additional_vars(self): if self.payload['task'].__contains__("fake_future_update"): self.environ["FIRST_UPDATE"] = str(self.payload["first_update"]) self.environ["SECOND_UPDATE"] = str(self.payload["second_update"]) self.environ["RESCUE_FW_VERSION"] = self.get_rescue_image_version() self.environ[ "RP_LAUNCH"] = f"Fake Future from {str(self.firmware_version)} to {str(self.payload['first_update'])} to {str(self.payload['second_update'])}" if self.payload['task'] == ManagementTasks.UPDATE: self.environ["UPDATEVERSION"] = str(self.payload["update_to_fw"]) self.environ[ "RP_LAUNCH"] = f"Update from {str(self.firmware_version)} to {str(self.payload['update_to_fw'])}" async def teardown_hook(self): self.log(logging.INFO, "Teardown") if self.payload['task'].__contains__( "fake_future_update") and self.test_successfull_finished and self.test_is_pass_on_filesystem: self.db_connector.whitelist_release(str(self.payload["first_update"])) result = self.parse_result_from_xml() if not result: await self.run_robot_to_signal_failed_test() result = self.resultparser.get_payload_for_failed_test() if "ci_run" in self.payload and self.payload["ci_run"] is not None and "test_uuid" in self.payload["ci_run"]: test_uuid = self.payload["ci_run"]["test_uuid"] await RabbitSend.send_result_to_hive_mind(result, test_uuid) self.log(logging.INFO, f"testresults: {result}") self.mongo_connector.update_test_field(self.test_uuid, field_name="result", new_value=result)
最新发布
04-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值