【问题标题】:Can't run Xamarin.iOS application on a device, quits after splash screen无法在设备上运行 Xamarin.iOS 应用程序,在启动屏幕后退出
【发布时间】:2015-01-27 21:27:48
【问题描述】:

这个问题不是这两个问题的重复,因为两者都得到了回答,而且在我的情况下没有一个解决方案有效。

App dies on startup but not crash report

Xamarin app crashes on startup on device, works fine in simulator

每当我在 Xamarin Studio 中创建一个全新的 Xamarin.iOS 应用程序项目,并为该应用程序创建具有 Bundle ID 的适当开发配置文件时,我在项目的属性中设置,每当我在设备上运行应用程序时(尝试调试它在那里),它显示启动画面,然后应用程序就退出了。

我提供了一个日志,当我(没有调试器)尝试运行已部署的手机应用程序时正在收集该日志:

Jan 27 23:19:40 Jerico kernel[0] <Notice>: xpcproxy[303] Container: /private/var/mobile/Containers/Data/Application/DF38525E-82C0-443C-BAB3-5C2730E957A4 (sandbox)
Jan 27 23:19:40 Jerico SpringBoard[49] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Jan 27 23:19:40 Jerico locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Jan 27 23:19:42 Jerico ZenKurs[303] <Warning>: Found new TLS offset at 224
Jan 27 23:19:42 Jerico com.apple.xpc.launchd[1] (UIKitApplication:ua.com.cur-cur.zenkurs[0xb6f3][303]) <Warning>: Service exited with abnormal code: 1
Jan 27 23:19:42 Jerico SpringBoard[49] <Warning>: Application 'UIKitApplication:ua.com.cur-cur.zenkurs[0xb6f3]' exited voluntarily.
Jan 27 23:19:42 Jerico assertiond[59] <Warning>: Could not set priority of <BKNewProcess: 0x14f61ba60; ua.com.cur-cur.zenkurs; pid: 303; hostpid: -1> to 2, priority: No such process
Jan 27 23:19:42 Jerico assertiond[59] <Warning>: Could not set priority of <BKNewProcess: 0x14f61ba60; ua.com.cur-cur.zenkurs; pid: 303; hostpid: -1> to 4096, priority: No such process
Jan 27 23:19:42 Jerico SpringBoard[49] <Warning>: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port
Jan 27 23:19:42 Jerico locationd[56] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Jan 27 23:19:42 Jerico kernel[0] <Notice>: xpcproxy[304] Container: /private/var/mobile/Containers/Data/Application/DF38525E-82C0-443C-BAB3-5C2730E957A4 (sandbox)
Jan 27 23:19:44 Jerico ZenKurs[304] <Warning>: Found new TLS offset at 224
Jan 27 23:19:44 Jerico com.apple.xpc.launchd[1] (UIKitApplication:ua.com.cur-cur.zenkurs[0x785f][304]) <Warning>: Service exited with abnormal code: 1
Jan 27 23:19:44 Jerico SpringBoard[49] <Warning>: Application 'UIKitApplication:ua.com.cur-cur.zenkurs[0x785f]' exited voluntarily.
Jan 27 23:19:44 Jerico SpringBoard[49] <Warning>: Unable to deliver -[UIRemoteApplication showTopMostMiniAlertWithSynchronizationPort:] message to port 0: (ipc/send) invalid destination port

我没有提供调试尝试日志,因为它要大得多,而且大部分只包含调试器条目。如果调试日志对您的帮助至关重要,请告诉我。

应用程序在模拟器上运行良好。我安装了 Xamarin Studio for Mac 5.7、Xamarin.iOS 8.6.0.51 包和带有命令行工具 (6.1.1) 的最新 XCode。

附:我尝试为 AdHoc 分发设置一个配置文件(在我上面提到的两个配置文件中,我肯定会添加我正在尝试调试的 iPhone(它的 UUID))并通过 TestFlight 将其部署到设备 - 得到了同样的崩溃.

我很感激有关如何获得更详细的调试信息的建议,因为我看到的唯一错误是

Jan 27 23:19:44 Jerico com.apple.xpc.launchd[1] (UIKitApplication:ua.com.cur-cur.zenkurs[0x785f][304]) <Warning>: Service exited with abnormal code: 1

这没什么帮助。

Debug log from device as gist.

Deploy to device log as gist.

Xamarin build log (-v -v -v -v added) as gist.

【问题讨论】:

  • 在 stackoverflow 的上下文中 latest 版本不是很有帮助。请编辑您的问题以包含特定版本(Xamarin 工具和设备的 iOS 版本)。也没有太多有用的信息,也许您可​​以将链接(例如要点)添加到调试日志并包括构建日志(确保将 -v -v -v -v 添加到项目选项中的 Additional mtouch arguments )。那些可能证明是有用的。
  • 你在使用第三部分的库吗?
  • @poupou,感谢您的及时回复。我添加了版本信息和三个指向您建议的要点的链接。虽然我自己在新信息中没有看到任何线索。
  • @DerekBeattie,这是一个开箱即用的 iOS 应用程序,使用 Xamarin Studio 中的 iOS 单页应用程序项目模板创建。在 iOS 应用程序设置中选择了配置文件并设置了捆绑 ID。
  • Xamarin.iOS 8.6.0.51 (dfb682f) Priority Edition

标签: ios crash xamarin.ios xamarin startup


【解决方案1】:

在 iOS 构建部分 => 链接器行为: 为您的设备选择不链接。

【讨论】:

    猜你喜欢
    • 2013-08-02
    • 1970-01-01
    • 2014-01-12
    • 1970-01-01
    • 1970-01-01
    • 2014-05-04
    • 1970-01-01
    • 2011-09-28
    相关资源
    最近更新 更多