【问题标题】:App Crashes when not connected to Xcode iOS 9(beta 2)?未连接到 Xcode iOS 9(beta 2)时应用程序崩溃?
【发布时间】:2015-09-21 09:03:07
【问题描述】:

我已经在 iOS9 Beta 2 上安装了我的应用程序,它在通过 xcode 运行时不会崩溃,只要我从 xcode 中分离设备,它就会开始崩溃。以下是从 xcode 控制台获取的崩溃日志:

TCP Conn 0x1566cf10 发布 7 月 3 日 14:43:26 iPhone-5 assertiond[60]:无法为 pid 382 获取任务名称端口权:(os/kern)失败(5) Jul  3 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44]:无法注册执行通知:没有这样的过程 7 月 3 日 14:43:26 iPhone-5 SpringBoard(BaseBoard)[44] :无法为 pid 382 获取任务名称端口权:(os/kern) 失败 (5) 7 月 3 日 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44] :无法获得任务名称端口权; PID:382> Jul  3 14:43:26 iPhone-5 SpringBoard(FrontBoard)[44] : Application '{contents = “UIKitApplication:[0x9dc3]”}'

任何帮助将不胜感激.....

【问题讨论】:

    标签: ios9 xcode7-beta2


    【解决方案1】:

    尝试将 DeploymentTarget 设置为 iOS 7.0 及更高版本。

    我也面临同样的问题。在我的情况下,崩溃日志包含以下错误消息:

    Dyld 消息:没有名称为 (/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore) 的缓存图像

    Incident Identifier: E37B25ED-0D52-4AA6-9418-96D3EEF56730
    CrashReporter Key:   92c611b757eff682f584794eea6ed79651a5307f
    Hardware Model:      iPad2,1
    Process:             XXXX [378]
    Path:                /private/var/mobile/Containers/Bundle/Application/10AD5592-F872-46AA-9B8A-5BD437BC3437/XXXX.app/XXXX
    Identifier:          XXXXXXXXXX
    Version:             4.7 (4.5)
    Code Type:           ARM (Native)
    Parent Process:      launchd [1]
    
    Date/Time:           2015-07-07 18:17:35.35 +0530
    Launch Time:         2015-07-07 18:17:35.35 +0530
    OS Version:          iOS 9.0 (13A4280e)
    Report Version:      104
    
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
    Triggered by Thread:  0
    
    Filtered syslog:
    None found
    
    Dyld Error Message:
    Dyld Message: no cache image with name (/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore)
      Dyld Version: 366.5
    
    Binary Images:
    0x45000 - 0x134fff XXXXX armv7  <e9dea1918cc63374aace690ca7079049> /var/mobile/Containers/Bundle/Application/10AD5592-F872-46AA-9B8A-5BD437BC3437/XXXX.app/XXXX
    0x1fe47000 - 0x1fe6efff dyld armv7  <37ecf6928e2d34c89b64eaa2e694c55a> /usr/lib/dyld
    
    Error Formulating Crash Report:
    Failed while requesting activity/breadcrumb diagnostics
    

    所以在我的例子中,XCDYoutubeKit 使用的是 javascript.framework。因此,为了暂时解决崩溃,我从我的项目中删除了 XCDYoutubeKit 库,它解决了我的应用程序中的崩溃问题。您可以尝试相同的解决方案。

    修复:请参考以下链接 http://developer.xamarin.com/guides/ios/platform_features/ios9/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-29
      • 1970-01-01
      • 1970-01-01
      • 2019-11-30
      • 1970-01-01
      • 2011-12-19
      相关资源
      最近更新 更多