尝试将代码加载到我的 ios 设备时出现调试问题

发布于 2025-01-04 18:54:15 字数 470 浏览 3 评论 0原文

当我使用我的 ios 设备运行我的应用程序时。编译器立即转到以下代码:

    #import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

并且我从“所有输出”中收到以下消息:

警告:本地未找到 SubstrateLoader.dylib 的副本,正在从远程设备上的内存中读取。这可能会减慢调试会话的速度。 无法向引导服务器注册 XXXXX。错误:未知错误代码。 这通常意味着该进程的另一个实例已经在运行或挂在调试器中。(gdb)

知道为什么会发生这种情况吗?

When I run my app using my ios device. the compiler immediatly goes to the following code:

    #import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

and I get the following message from "All Output":

warning: No copy of SubstrateLoader.dylib found locally, reading from memory on remote device. This may slow down the debug session.
Couldn't register XXXXX with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.(gdb)

Any Idea why this is happening??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

权谋诡计 2025-01-11 18:54:15

我会咕哝出经典的 IT 支持口号:

您是否尝试过将其关闭然后再次打开?

有时,设备上的调试会话会在设备实际没有注意到的情况下断开连接,从而阻止任何进一步尝试打开新的调试会话。

如果发生这种情况,您最好的选择是重新启动设备......

I'll mumble the canonical IT-Support mantra:

Did you try turning it off and on again?

From time to time, the debugging session on the device disconnects without the device actually noticing it, thus blocking any further attempts to open a new debugging session.

If that happens, your best option is to reboot the device…

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文