2

我将一个 Git 存储库作为子模块添加到我现有的项目中,该项目也是 Git 管理的,我在命令行中完成了这些,我使用 GitBox 来管理我的项目,然后当我打开 GitBox 时,它就崩溃了,我尝试了很多次,甚至重新启动了机器。

应用程序特定信息: * 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“* setObjectForKey:对象不能为 nil(键:_NSTaskExecutablePath)”中止()调用终止调用抛出异常

Application Specific Backtrace 1: 0 CoreFoundation
0x00007fff92a3c716 __exceptionPreprocess + 198 1 libobjc.A.dylib
0x00007fff8f2b3470 objc_exception_throw + 43 2 CoreFoundation
0x00007fff92acaf07 -[__NSDictionaryM setObject:forKey:] + 135 3
Foundation 0x00007fff8f6cd732 -[NSConcreteTask setLaunchPath:] + 194 4 Gitbox 0x000000010001d779 Gitbox + 120697 5 Gitbox
0x000000010001cfb7 Gitbox + 118711 6 Gitbox
0x000000010005b6eb Gitbox + 374507 7 Gitbox
0x000000010000687b Gitbox + 26747 8 Gitbox
0x000000010005a3cc Gitbox + 369612 9 Gitbox
0x000000010005a6cc Gitbox + 370380 10 Gitbox
0x000000010001c7ec Gitbox + 116716 11 libdispatch.dylib
0x00007fff8e881f3d _dispatch_call_block_and_release + 15 12 libdispatch.dylib 0x00007fff8e87e0fa _dispatch_client_callout + 8 13 libdispatch.dylib 0x00007fff8e883104 _dispatch_main_queue_callback_4CF + 275 14 CoreFoundation 0x00007fff929de81e __CFRunLoopRun + 1614 15 CoreFoundation 0x00007fff929dddd2 CFRunLoopRunSpecific + 290 16 HIToolbox
0x00007fff98145774 RunCurrentEventLoopInMode + 209 17 HIToolbox
0x00007fff98145512 ReceiveNextEventCommon + 356 18 HI工具箱
0x00007fff981453a3 BlockUntilNextEventMatchingListInMode + 62 19 AppKit 0x00007fff93d29fa3 _DPSNextEvent + 685 20 AppKit 0x00007fff93d29862 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 21 AppKit 0x00007fff93d20c03 -[NSApplication run] + 517 22 AppKit 0x00007fff93cc5656 NSApplicationMain + 869 23 Gitbox
0x00000001000028c1 Gitbox + 10433 24 Gitbox
0x0000000100001d94 Gitbox + 7572 25 ???
0x0000000000000002 0x0 + 2

我想删除 Gitbox 设置并将其作为新安装的应用程序,但没有找到。我还能尝试什么?

谢谢!

4

4 回答 4

1

获取一个卸载应用程序(例如 AppCleaner)并删除它找到的所有内容,但 gitbox 应用程序本身。

然后重新启动 gitbox - 不幸的是,您将不得不将您正在使用的存储库重新添加到 gitbox,但这将使您摆脱崩溃。

于 2012-11-20T11:49:50.723 回答
1

删除 ~/Library/Preferences/com.oleganza.gitbox.plist 解决了这里的问题。

于 2013-08-12T16:33:01.367 回答
1

xcode 更新后 gitbox 也有类似的问题。这对我有用,这些指示来自应用程序作者:

  1. 退出 Gitbox。
  2. 删除 ~/Library/Preferences/com.oleganza.gitbox.plist
  3. 在终端中运行:默认删除 com.oleganza.gitbox
  4. 在终端中运行: git config --global push.default 匹配
  5. 打开 Gitbox。

如果您的“push.default”有其他值,您可能还需要在存储库中运行“git config push.default matching”。

于 2015-06-03T19:24:50.140 回答
0

无需卸载 Gitbox 并丢失您的存储库列表 - 只需删除 Library/Saved\ Application\ State/com.oleganza.gitbox.savedState/

于 2013-02-25T10:13:45.630 回答