“线程 1:信号 SIGTERM"是什么意思?在 iOS 中的 xcode 是什么意思? [英] What does "Thread 1: signal SIGTERM" mean in xcode with iOS?
问题描述
#import <UIKit/UIKit.h>
#import "XYZAppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([XYZAppDelegate class]));
}
}
程序运行良好,我只是对这个案例很好奇.通知指向第 7 行,当我这样做时,我可以在行之间拖动它,出现警告警告我指令指针的移动可能会导致严重问题.那么,指令指针是什么?会消失吗?
The program works fine and I'm just curious about the case. The notification pointed at the 7th line and I could drag it among lines when I do so, a warning showed up warns me the moving of instruction pointer may cause serious problems. So, what's the instruction pointer? Can it disappear?
我真的很少有编程经验,这几天刚开始学习 iOS 编程,我几乎不知道线程是什么,我发现 SIGTERM
是 Unix 信号之一,它似乎无处不在为了我.它是如何工作的?我在wiki上查了一下,发现有些信号比如SIGABRT
和SIGTERM
有类似的功能,有什么区别?
I really have few programming experiences and I just pick up the iOS programming these days, I hardly know what thread is and I found that SIGTERM
is one of the Unix signals which seemed come from nowhere as for me. How does it work? I looked it up in the wiki and found some signals like SIGABRT
have similar functions as SIGTERM
, what's the difference?
如果您能为我这样的新手解决问题,我将非常感谢您的耐心.
I will truly appreciate your patience if you can solve the problems for a novice like me.
PS:当我退出 xcode
并重新进入时,我发现它消失了.
PS: I found it disappears when I quit xcode
and reentry it.
推荐答案
这几乎是 Xcode 中的一个简单错误.每当 Xcode 关闭然后重新打开时,它似乎就会消失.
Pretty much this is a simple bug in Xcode. It seems to just go away whenever Xcode is closed and then reopened.
重启Xcode.
如果持久:单击您所在的文件夹,然后转到您的视图控制器,它应该会消失.
if persistent : click out of the folder you are in, and proceed to your view controller and it should disappear.
点击命令 S 并保存和更新您的所有视图、模型等.
hit command S and save and update all of your views, models, etc.
这篇关于“线程 1:信号 SIGTERM"是什么意思?在 iOS 中的 xcode 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!