0

我使用 GN 构建了一个应用程序并在 Xcode 上运行它。但是当我单击菜单上的任何项目时,它总是在 main.m 崩溃

int main(int argc, const char* argv[]) {
@autoreleasepool {
    // Setup code that might create autoreleased objects goes here.
  }
  return NSApplicationMain(argc, argv); //crash at this line. exc_bad_access
}

我只能得到这样的东西

0x7ff8117a61e3 <+795>:  nop    
    0x7ff8117a61e4 <+796>:  nopl   (%rax)
    0x7ff8117a61e8 <+800>:  movq   (%r15), %rdi
    0x7ff8117a61eb <+803>:  movq   0x3ee419f6(%rip), %rsi    ; "run"
    0x7ff8117a61f2 <+810>:  callq  *0x3d44d040(%rip)         ; (void *)0x00007ff80eb85040: objc_msgSend
->  0x7ff8117a61f8 <+816>:  movl   $0x7, %edi. //Thread 1: EXC_BAD_ACCESS
4

0 回答 0