简体   繁体   English

XCode App卡在启动屏幕上没有错误日志

[英]XCode App Stuck on Launch Screen No Error Log

I use XCode 8.1 and using Swift 3. The app suddenly decided to stuck on the launch screen when I run it from XCode with no error log. 我使用XCode 8.1并使用Swift 3.当我从XCode运行它而没有错误日志时,应用突然决定卡在启动屏幕上。 I put breakpoint in the didFinishLaunchingWithOptions but it isn't triggered. 我把断点放在didFinishLaunchingWithOptions但它没有被触发。 The app doesn't shut itself completely, just keeps displaying the launch screen. 该应用程序不会完全关闭,只是继续显示启动屏幕。 Interesting thing is that when I tap the app on the device without XCode, the app works with no problem. 有趣的是,当我在没有XCode的设备上点击应用程序时,该应用程序没有问题。 Any idea why this is happening? 知道为什么会这样吗?

What I tried 我尝试了什么

  • Removed Derived Data 删除派生数据
  • Restart XCode 重启XCode
  • Restart the computer 重新启动计算机
  • Uninstall the app 卸载应用程序
  • Clean/Build 清洁/编译

Below is what I get when it crashes. 以下是崩溃时的结果。

APPNAME`main:
0x1000c6fc4 <+0>:   stp    x29, x30, [sp, #-16]!
0x1000c6fc8 <+4>:   mov    x29, sp
0x1000c6fcc <+8>:   sub    sp, sp, #32               ; =32 
0x1000c6fd0 <+12>:  adrp   x8, 1366
0x1000c6fd4 <+16>:  ldr    x8, [x8, #2272]
0x1000c6fd8 <+20>:  adrp   x9, 1366
0x1000c6fdc <+24>:  ldr    x9, [x9, #1472]
0x1000c6fe0 <+28>:  str    w0, [x9]
0x1000c6fe4 <+32>:  ldr    x8, [x8]
0x1000c6fe8 <+36>:  cmn    x8, #1                    ; =1 
0x1000c6fec <+40>:  stur   w0, [x29, #-4]
0x1000c6ff0 <+44>:  str    x1, [sp, #16]
0x1000c6ff4 <+48>:  b.eq   0x1000c7010               ; <+76> at AppDelegate.swift:17
0x1000c6ff8 <+52>:  adrp   x8, 1366
0x1000c6ffc <+56>:  ldr    x0, [x8, #2272]
0x1000c7000 <+60>:  adrp   x8, 1365
0x1000c7004 <+64>:  ldr    x8, [x8, #2264]
0x1000c7008 <+68>:  mov    x1, x8
0x1000c700c <+72>:  bl     0x1004c9a84               ; symbol stub for: swift_once
0x1000c7010 <+76>:  adrp   x8, 1365
0x1000c7014 <+80>:  ldr    x8, [x8, #1464]
0x1000c7018 <+84>:  ldr    x9, [sp, #16]
0x1000c701c <+88>:  str    x9, [x8]
0x1000c7020 <+92>:  bl     0x1000c6cb4               ; type metadata accessor for APPNAME.AppDelegate at AppDelegate.swift
0x1000c7024 <+96>:  bl     0x1004c820c               ; symbol stub for: NSStringFromClass
0x1000c7028 <+100>: mov    x29, x29
0x1000c702c <+104>: bl     0x1004c83ec               ; symbol stub for: objc_retainAutoreleasedReturnValue
0x1000c7030 <+108>: movz   x8, #0
0x1000c7034 <+112>: ldur   w10, [x29, #-4]
0x1000c7038 <+116>: str    x0, [sp, #8]
0x1000c703c <+120>: mov    x0, x10
0x1000c7040 <+124>: ldr    x1, [sp, #16]
0x1000c7044 <+128>: mov    x2, x8
0x1000c7048 <+132>: ldr    x3, [sp, #8]
0x1000c704c <+136>: bl     0x1004c8104               ; symbol stub for: UIApplicationMain
0x1000c7050 <+140>: movz   w10, #0
0x1000c7054 <+144>: str    w0, [sp, #4]
0x1000c7058 <+148>: mov    x0, x10
0x1000c705c <+152>: mov    sp, x29
0x1000c7060 <+156>: ldp    x29, x30, [sp], #16
0x1000c7064 <+160>: ret    

如果Xcode解决了这个问题,请重新启动。

您可以使用Charles来抓取网络包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM