Xcode 9 iOS 10/11模拟器 - 所有应用程序崩溃 [英] Xcode 9 iOS 10 / 11 Simulators - All Apps Crashing

查看:929
本文介绍了Xcode 9 iOS 10/11模拟器 - 所有应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Xcode 9并尝试运行iOS 11和10.3.1模拟器。

I just installed Xcode 9 and tried running the iOS 11 and 10.3.1 simulators.

奇怪的是,模拟器中的所有股票应用程序都崩溃/强制关闭我点击它们中的任何一个,即Safari,照片等。

Weirdly, ALL the stock apps in the simulator are crashing / force closing the moment I click on any of them, i.e. Safari, Photos, etc.

我在iPhone X,iPhone 8/8 +和iPhone 6+模拟器上试过它iOS 11 / 10.3.1,都具有相同的崩溃结果。如果我在较旧的iOS模拟器(如iPhone 6+ iOS 9.2)上试用它,那么它运行正常。

I've tried it on iPhone X, iPhone 8/8+ and iPhone 6+ simulators with iOS 11 / 10.3.1, all with the same crashing result. If I try it on older iOS simulators such as iPhone 6+ iOS 9.2, then it runs fine.

如果我尝试多次启动它,即40 - 50次对于Safari或日历,有时特定应用程序可能会运行,并且一旦成功运行,它将在会话的其余部分保持如此(直到我在任务切换器关闭应用程序,然后同样的问题再次出现)。对于我的Xcode编译应用程序也是如此。

If I try to launch it many times, i.e. 40 - 50 times for Safari or Calendar, sometimes that specific app may run, and once successfully ran, it'll remain so for the rest of the session (until I close the app at the task switcher, then same problem recurs). The same happens for my Xcode compiled app too.

我在模拟器的设备日志中看到了很多这些错误,不确定它是否相关:

I saw many of these errors in the simulator's device logs, not sure if it's relevant:


9月26日23:25:34 MYMAC
com.apple.CoreSimulator.SimDevice.2F950F5F-6057- 4AAA-A5B4-A8068A8F00F9 [10215]
(com.apple.imfoundation.IMRemoteURLConnectionAgent):
的未知密钥布尔值:EnablePressuredExit

Sep 26 23:25:34 MYMAC com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9[10215] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnablePressuredExit

9月26日23 :25:33 MYMAC
com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9 [10215]
(com.apple.Safari.History):布尔的未知键:
EnableTransactions

Sep 26 23:25:33 MYMAC com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9[10215] (com.apple.Safari.History): Unknown key for Boolean: EnableTransactions

Sep 26 23:25:33 MYMAC
com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9 [10215]
(com.apple.icloud.FMF.FMFMapXPCService):布尔的未知键:
EnableTransactions

Sep 26 23:25:33 MYMAC com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9[10215] (com.apple.icloud.FMF.FMFMapXPCService): Unknown key for Boolean: EnableTransactions

9月26日23:25:34 MYMAC
com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9 [10215]
(com.apple.imfoundation.IMRemoteURLConnectionAgent):
的未知键布尔值:EnableTransactions

Sep 26 23:25:34 MYMAC com.apple.CoreSimulator.SimDevice.2F950F5F-6057-4AAA-A5B4-A8068A8F00F9[10215] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for Boolean: EnableTransactions






我的iMac 2009一直在运行El Capitan和Xcode 8,我刚刚使用Xcode 9升级到High Sierra。我还更新到iTunes 12.7,以防万一。


My iMac 2009 has been running El Capitan and Xcode 8 fine all the while, and I just upgraded to High Sierra with Xcode 9. I also updated to iTunes 12.7, in case that makes a difference.

我还尝试运行旧的Xcode 8(仍然作为单独的副本安装)和iOS 10.3.1模拟器,这些股票应用运行正常。

I also tried running my old Xcode 8 (still installed as separate copy) and iOS 10.3.1 simulators, these stock apps run fine.

所以这个问题似乎只发生在Xcode 9和iOS 10/11模拟器上。

So this problem seems to happen only with Xcode 9 and iOS 10/11 simulators.

有人能解决这个问题吗?谢谢。

Can anyone shed some light on this problem please? Thank you.

推荐答案

您在我的类似问题中询问我是否找到了解决方案。我想我找到了一个。

You asked in my similar question if i found an solution. I guess i found one.

我在Flutter页面的Xcode中设置开发团队描述的方法。

I set the Dev Team in Xcode on the Flutter Page the describe how to.

来自Flutter页面:

From the Flutter Page:

按照Xcode签名流程配置项目:通过运行 open ios / Runner.xcworkspace 打开项目中的默认Xcode工作区来自Flutter项目目录的终端窗口。在Xcode中,选择左侧导航面板中的Runner项目。在Runner目标设置页面中,确保在General> Signing> Team下选择了开发团队。当您选择团队时,Xcode会创建并下载开发证书,使用您的帐户注册您的设备,并创建和下载配置文件(如果需要)

Follow the Xcode signing flow to provision your project:Open the default Xcode workspace in your project by running open ios/Runner.xcworkspace in a terminal window from your Flutter project directory.In Xcode, select the Runner project in the left navigation panel.In the Runner target settings page, make sure your Development Team is selected under General > Signing > Team. When you select a team, Xcode creates and downloads a Development Certificate, registers your device with your account, and creates and downloads a provisioning profile (if needed)

然后我运行在另一个错误,让我不再热重新加载

But then i run in an other error which dont let me hot reload anymore

编辑:重新安装flutter但这次克隆主分支而不是alpha。

Reinstall flutter but this time clone the master branch not the alpha.

请按照flutter页面上的步骤操作,但在第一步中更改此单词:

So follow the steps on the flutter page but change this word in the first step:

旧:
git clone -b alpha https://github.com/flutter/flutter.git

新:
git clone -b master https:// github .com / flutter / flutter.git

这篇关于Xcode 9 iOS 10/11模拟器 - 所有应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆