无法在设备上运行Xamarin.iOS应用程序,在闪屏屏幕后退出

4

这个问题不是这两个问题的重复,因为两个问题都已经有了解答,但在我的情况下,它们都没有起作用。

应用程序在启动时死亡,但没有崩溃报告

Xamarin应用程序在设备上启动时崩溃,在模拟器中运行正常

每当我在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

这并没有多大帮助。 设备的调试日志,以gist形式展示。 部署到设备的日志,以gist形式展示。 Xamarin构建日志(添加了-v -v -v -v选项),以gist形式展示。

在stackoverflow的背景下,“最新版本”并不是非常有用。请编辑您的问题以包括特定版本(Xamarin工具和设备的iOS版本)。也没有太多有用的信息,也许您可以添加链接(例如gists)到调试日志,并包括构建日志(确保在项目选项中添加“-v -v -v -v”到“附加mtouch参数”)。这些可能会证明有用。 - poupou
你使用了任何第三方库吗? - Derek Beattie
@poupou,感谢您的迅速响应。我已添加了版本信息和三个您建议的gist链接。虽然我自己在新信息中没有看到任何线索。 - Maxim V. Pavlov
@DerekBeattie,这是一个使用Xamarin Studio中的iOS单页应用程序项目模板创建的开箱即用的iOS应用程序。在iOS应用程序设置中,只选择了配置文件并设置了包标识符。 - Maxim V. Pavlov
Xamarin.iOS 8.6.0.51 (dfb682f) Priority Edition <- 这使您有资格获得来自 Xamarin 的直接优先支持。请使用您的特殊电子邮件地址,让工程师立即查看此事(和/或与您的 CSE 谈话)。 - poupou
1个回答

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接