Bea*_*lle 81 crash xcode sigabrt ios ios-simulator
我第一次启动应用程序,一切似乎运行正常.我会点击停止按钮,做一些工作,当我再次启动时,它似乎在它甚至可以加载任何东西之前崩溃.按停止,再次点击运行,它工作正常.直到我重复这个过程.
这是xcode用"Thread 1:signal SIGABRT"突出显示错误的地方.显然这里没什么用.
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([PokerAppDelegate class]));
}
}
Run Code Online (Sandbox Code Playgroud)
调试控制台除了(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)
Run Code Online (Sandbox Code Playgroud)
这是我到目前为止所做的:
尽管如此,应用程序仍然会在每秒/其他发布时崩溃.
在最近的Xcode更新之前,我没有遇到任何问题.它可能是一个Xcode错误吗?
(编辑)我也在运行最新的OSX开发者版本.这会干扰吗?
nev*_*ing 75
似乎是OS X 10.8.4和LLDB的组合.正如肯斯特所说,切换到GDB会使问题消失.
Edit:
It's caused by a race condition in the debug server (I hear).
Here's a fix if you want to keep using LLDB: Instead of clicking Run while the app is already running in the simulator, kill it in Xcode (?-.), say "I love Xcode" 5 times and Run it again (?-R). It won't crash, I tested it.
Fixed in Xcode 4.6.3.
ken*_*ter 11
我也有这个问题.看看这篇文章.Xcode 4.6.2应用程序每次运行都会崩溃
基本上将调试器从LLDB更改为GDB.我不敢相信这是因为LLDB有问题.
| 归档时间: |
|
| 查看次数: |
19063 次 |
| 最近记录: |