【问题标题】:Running iOS7 Simulator alongside iOS8 in Xamarin在 Xamarin 中与 iOS8 一起运行 iOS7 模拟器
【发布时间】:2014-12-08 23:52:32
【问题描述】:

我已升级到 XCode 6,重新安装了 iOS 7.1 模拟器,现在我的 Xamarin 应用程序在显示启动图像后立即终止。应用程序输出如下:

Starting iPad 2
Launching application
Application launched. PID = 97972
Press enter to terminate the application
>
Application Terminated

如果我选择 iOS8 模拟器,那么它可以毫无问题地运行。

是否有任何设置需要我手动更改,或者在哪里可以获得更好的调试信息?

更新:系统日志跟踪

Oct 14 16:40:22 Chriss-MacBook-Pro-2.local CoreSimulatorBridge[7807] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.HIDDENAPPNAME
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local CoreSimulatorBridge[7807] <Warning>: LaunchServices: Not creating progress for LSApplicationProxy: com.HIDDENAPPNAME since it is not a placeholder.
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local installd[7800] <Notice>: 0xb0115000 handle_install_for_ls: Install of "/Users/chriskoiak/Documents/Initial/Mobile Clients/HIDDEN_CLIENT_NAME/bin/iPhoneSimulator/Debug/HIDDENAPPNAME.app" requested by CoreSimulatorBridge
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local installd[7800] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Installing app com.HIDDENAPPNAME
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local installd[7800] <Notice>: 0xb0115000 install_application: Performing developer delta patch
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local installd[7800] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.02s; LS Sync: 0.00s; Overall: 0.03s
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local lsd[7811] <Warning>: LaunchServices: Updating identifier store
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local SpringBoard[7804] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
Oct 14 16:40:22 Chriss-MacBook-Pro-2.local SpringBoard[7804] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
Oct 14 16:40:23 Chriss-MacBook-Pro-2.local backboardd[7794] <Warning>: Application 'UIKitApplication:com.HIDDENAPPNAME[0x9262]' exited abnormally with signal 5: Trace/BPT trap: 5
Oct 14 16:40:32 Chriss-MacBook-Pro-2.local lsd[7811] <Warning>: LaunchServices: Currently 0 installed placeholders: (
)
Oct 14 16:40:42 Chriss-MacBook-Pro-2.local mstreamd[7799] <Notice>: (Note ) PS: Media stream daemon stopping.
Oct 14 16:40:42 Chriss-MacBook-Pro-2.local mstreamd[7799] <Notice>: (Note ) AS: <MSIOSAlbumSharingDaemon: 0x3a1c630>: Shared Streams daemon has shut down.
Oct 14 16:40:42 Chriss-MacBook-Pro-2.local mstreamd[7799] <Notice>: (Warn ) mstreamd: mstreamd shutting down.

谢谢

【问题讨论】:

    标签: ios7 xamarin ios8 ios-simulator xcode6


    【解决方案1】:

    问题与“链接器行为”有关。将此从“不链接”更新为“仅链接 SDK 程序集”解决了我的问题。

    【讨论】:

    • 刚遇到同样的问题。一直拉着我的头发,直到我改变了链接行为并且它起作用了。
    【解决方案2】:

    Xamarin.iOS v8.0 中存在可能导致此行为的错误。

    该错误已在 Xamarin.iOS v8.2 中修复,因此请确保您使用的是最新的稳定版本(即 Xamarin.iOS 8.2)。

    【讨论】:

    • 感谢 Rolf,但我已经在使用 Xamarin.iOS v8.2.0.193 构建日期:2014-10-03 00:25:37-0400
    • 在模拟器中,打开Debug -&gt; Open System Log...,当您尝试启动应用程序时,看看那里是否打印了任何有用的信息。
    • 我已经用系统日志更新了原始帖子。我看不到任何指向错误原因的内容。
    • Application 'UIKitApplication:com.HIDDENAPPNAME[0x9262]' exited abnormally with signal 5: Trace/BPT trap: 5 - 检查控制台应用程序的崩溃报告(它们将显示在“用户诊断报告”下)
    • @RolfBjarneKvinge FWIW,我在 Xamarin.iOS 8.4.0.38 的 alpha 通道中也遇到了这个问题。必须更改链接设置才能使其正常工作。
    猜你喜欢
    • 2020-05-01
    • 1970-01-01
    • 2017-05-18
    • 2018-03-05
    • 2018-01-24
    • 2016-12-11
    • 2022-01-25
    • 1970-01-01
    • 2020-03-12
    相关资源
    最近更新 更多