这个问题不是这两个问题的重复,因为两者都得到了解答,而且我的案例中没有一个解决方案有效。
App dies on startup but not crash report
Xamarin app crashes on startup on device, works fine in simulator
每当我在Xamarin Studio中创建一个全新的Xamarin.iOS应用程序项目,并为该应用程序创建适当的开发配置文件时,我在项目的属性中设置,每当我在设备上运行应用程序时(尝试在那里调试它),它显示启动画面,然后应用程序退出。
我正在提供一个日志,当我因此(没有调试器)尝试运行已部署的手机应用程序时收集该日志:
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软件包和带命令行工具的最新XCode(6.1.1)。
P.S。我已经尝试为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
这不是一个很大的帮助。
答案 0 :(得分:0)
=&gt;链接器行为: 选择不要为您的设备链接。