第一次启动该应用程序时,一切似乎运行良好。 我将按一下“停止”按钮,做一些工作,当我再次启动它时,它似乎崩溃了,甚至无法加载任何东西。 按停止,再次单击运行,它可以正常工作。 直到我重复该过程。
这是xcode使用“线程1:信号SIGABRT”突出显示错误的地方。 显然这里没有用。
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([PokerAppDelegate class]));
}
}
调试控制台除了(lldb)之外什么都没有显示(因此,我想它停止了,目前还没有崩溃)。因此,当我执行BT
这就是我得到的:
(lldb) bt
* thread #1: tid = 0x1c03, 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
frame #0: 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x99ea1b2f libsystem_c.dylib`pthread_kill + 101
frame #2: 0x04a7057b libsystem_sim_c.dylib`abort + 140
frame #3: 0x01dc0b4e GraphicsServices`GSRegisterPurpleNamedPort + 348
frame #4: 0x01dc069f GraphicsServices`_GSEventInitialize + 123
frame #5: 0x01dc0c1f GraphicsServices`GSEventInitialize + 36
frame #6: 0x000163f9 UIKit`UIApplicationMain + 600
frame #7: 0x00001d0d Guitar Chord Poker HD`main(argc=1, argv=0xbffff32c) + 141 at main.m:16
frame #8: 0x00001c35 Guitar Chord Poker HD`start + 53
(lldb)
到目前为止,这是我所做的:
- 执行“清洁”
- 我已经重置了模拟器并重置了计算机
- 我已经注释掉了视图控制器中的所有代码,仍然崩溃
- 我已注释掉应用程序委托中的所有代码,仍然崩溃
- 但是…。我已经在Xcode以外的设备上运行了该应用程序,并且看起来运行得很好。
- (编辑)我已经从各种缓存文件夹中删除/重新安装了xcode和所有内容(模拟器,文档)(这会使xcode在新下载后不再自动重新安装旧代码)。 虽然仍然找不到命令行工具的存放位置。 仍然崩溃。
尽管如此,应用程序仍然每秒或其他启动崩溃。
事情是直到最近的Xcode更新,我才没有问题。 可能是Xcode错误吗?
(编辑)我也正在运行最新的OSX开发人员版本。 会干扰吗?
First time I launch the app, everything seems to run fine.I’ll hit the stop button, do some work and when I go to launch it again, it seems to crash before it can even load anything.Press stop, hit Run again, and it works fine.Until I repeat the process.This is where xcode is highlighting the error with “Thread 1:signal SIGABRT”.Obviously nothing useful here.The debug console shows nothing besides (lldb) (So I suppose its stopping, not crashing at this point) So, when I perform a BT
this is what I get:Here’s what I have done so far:Performed a ‘Clean’I’ve reset the simulators and reset my computerI’ve commented out all the code in the view controller, still crashesI’ve commented out all the code in the app delegate, still crashesBUT….I’ve run the app on a device outside of Xcode, and it seems to work perfectly fine.(EDIT) I’ve deleted/reinstalled xcode, and all content(Simulators, Docs) from the various cache folders (This stops xcode from automatically reinstalling the old ones after a new download).Still can’t find where command line tools is kept though.Still crashes.Despite all this, apps still crash every second/other launch.Thing is I had no issues until the most recent Xcode update.Could it be an Xcode bug?(EDIT) I am also running the latest developer releases of OSX.Could that be interfering?