【问题标题】:iOS Simulator (11.1) that comes with Xcode 11.1 GM Seed seems to be unable to boot iOS 13.1 devicesXcode 11.1 GM Seed 附带的 iOS Simulator (11.1) 似乎无法启动 iOS 13.1 设备
【发布时间】:2020-01-29 02:21:31
【问题描述】:

我正在运行 Mac OS X Mojave 10.14.6。我安装的唯一应用程序是新下载的 Xcode 11.1 GM Seed (11A1027)。这个系统上没有以前的文件、项目或应用程序,因为我只是想开始学习 Swift 编程。

在 Xcode 中,我为单视图 iOS 应用程序创建了一个新项目。我编译它没有任何更改,构建成功。默认情况下,它会在 iOS 13.1 上启动 iPhone 11 Pro Max。

模拟器启动,设备窗口出现,进度条走了一会儿。一段时间后,黑屏上出现了一个旋转的指示符,但什么也没发生。这持续了几分钟,之后 Xcode 显示此错误:

打开“com.example.FoodTracker”的请求失败。意外的错误类型。

Details:

The request to open "com.example.FoodTracker" failed.
Domain: FBSOpenApplicationServiceErrorDomain
Code: 5
Failure Reason: Unexpected error type.
User Info: {
    BSErrorCodeDescription = InvlaidResponse;
}
--
The operation couldn't be completed.
(BSServiceConnectionErrorDomain error 3.)
Domain: BSServiceConnectionErrorDomain
Code: 3
User Info: {
    BSErrorCodeDescription = OperationFailed;
}
--

我让设备在模拟器中运行了很长一段时间,但它从未停止旋转。

我尝试重新安装 Xcode,删除了 DerivedData 目录,进行了干净的构建,重新安装了一些 Xcode 组件,但我认为 Xcode 或项目本身没有问题。

在模拟器中,我也尝试过“擦除所有内容和设置”,但无济于事。 我尝试在第一次尝试成功加载 iOS 12.2 上的新设备和 iPhone 6s。另一方面,我一直在 iPhone 11 Pro Max 和 iPhone 8 设备上尝试 iOS 13.1,但在加载后都卡住了。

有时我也会得到这个:SpringBoard 意外退出。当我检查详细信息时,似乎 SIGILL 终止了它。

每当我使用 iOS 13.1 启动 iPhone 11 Pro Max 设备时,它都会不停地旋转。检查系统日志后,我注意到相同的消息不断循环,中间有大约 5 秒的延迟:

Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class UIDelayedAction is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x1247c9630) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/KeyboardArbiter.framework/KeyboardArbiter (0x10a3e4a60). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class UIHeldAction is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x1247c9680) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/KeyboardArbiter.framework/KeyboardArbiter (0x10a3e4ab0). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SPXPCConnection is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Search.framework/Search (0x130d5a858) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpotlightUI.framework/SpotlightUI (0x10b4a1e30). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SPXPCServer is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Search.framework/Search (0x130d5a8d0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpotlightUI.framework/SpotlightUI (0x10b4a1ea8). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SPXPCMessage is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Search.framework/Search (0x130d5a880) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpotlightUI.framework/SpotlightUI (0x10b4a1e58). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SPApplication is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Search.framework/Search (0x130d5a448) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpotlightUI.framework/SpotlightUI (0x10b4a1f20). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class AFUIPreferences is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SiriUI.framework/SiriUI (0x10de1a5c8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AssistantUI.framework/AssistantUI (0x12a0fb790). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SBFBokehWallpaperColorArbiter is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation (0x10dce3dd8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpringBoardHome.framework/SpringBoardHome (0x107450800). One of the two will be used. Which one is undefined.
Sep 29 08:17:22 Peterdis-iMac SpringBoard[2774]: objc[2774]: Class SBFMotionGestureController is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation (0x10dce2050) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard (0x105a7fde0). One of the two will be used. Which one is undefined.
Sep 29 08:17:24 Peterdis-iMac SpringBoard[2774]: assertion failed: 18G103 17A844: libxpc.dylib + 83383 [F391B106-5033-3156-98D9-705C5A7FDECD]: 0x7d
Sep 29 08:17:25 Peterdis-iMac com.apple.CoreSimulator.SimDevice.FA4A0BF0-0673-484C-896D-178314FAFAFF[2657] (com.apple.SpringBoard[2774]): Service exited due to SIGILL | sent by exc handler[2774]
Sep 29 08:17:25 Peterdis-iMac com.apple.CoreSimulator.SimDevice.FA4A0BF0-0673-484C-896D-178314FAFAFF[2657] (com.apple.SpringBoard): Skipping remaining event endpoints for importance boosting.
Sep 29 08:17:25 Peterdis-iMac com.apple.CoreSimulator.SimDevice.FA4A0BF0-0673-484C-896D-178314FAFAFF[2657] (com.apple.SpringBoard): Skipping remaining instance endpoints for importance boosting.

我整天都在谷歌上搜索解决方案,但到目前为止没有任何帮助。 我想同时我将开始为 12.2 开发,假设基础没有太大不同。尽管 Xcode 清楚地为 13.0+ 生成代码,并且它对我大喊“一些”、“视图”等是针对较新版本的。

【问题讨论】:

  • 在此状态下,运行“sudo sysdiagnose -q”和“xcrun simctl diagnostic”。归档一个雷达 (bugreport.apple.com) 并包含生成的 tarball 以及您的应用程序的捆绑包 ID 以及您遇到问题的粗略时间戳。您的报告中的内容不足以为您提供解决方案,并且对其他人来说效果很好......
  • 模拟器出现问题的一种常见方式是通过充当防病毒软件或网络活动监视器或类似工具的第三方 kext。运行sudo kextstat -l | grep -v 'com.apple' 并查看是否出现任何可疑情况。如果是这样,请尝试卸载该软件(并重新启动)。

标签: xcode ios-simulator ios13


【解决方案1】:

是的,这个解决方案有效。

打开cmd

  1. cd "C:\Program Files\Oracle\VirtualBox\"
  2. VBoxManage setextradata "$vm_name" VBoxInternal/CPUM/IsaExts/AVX 0
  3. VBoxManage setextradata "$vm_name" VBoxInternal/CPUM/IsaExts/AVX2 0

【讨论】:

  • NIKUNJ,请不要添加 "thanks" 作为答案。它们实际上并没有提供问题的答案,并且可能被未来的访问者视为噪音。一旦你earn足够reputation,你将获得upvote answers你喜欢的特权。这样,问题的未来访问者将看到对该答案的更高投票数,并且回答者也将获得声誉积分奖励。见Why is voting important
  • 您的帖子给人的印象是只说“谢谢”,这不会被视为有价值的贡献。但是我认为您可能已经尝试实际添加一些内容...如果是这种情况,请edit 并改写以使其更明显。否则请删除。
  • MS-DOS 脚本如何解决在 Macintosh 上运行 iOS 模拟器的问题?
  • 因为这个问题是在 Windows 机器(虚拟 m​​ac)上运行的 VBox 上运行 mac os 的结果。并且更改上述值似乎可以解决问题
【解决方案2】:

我有同样的问题。 为我解决了禁用 AVX/AVX2 的问题。

VBoxManage setextradata "$vm_name" VBoxInternal/CPUM/IsaExts/AVX 0
VBoxManage setextradata "$vm_name" VBoxInternal/CPUM/IsaExts/AVX2 0

【讨论】:

  • 谢谢@Alexandr!我有一个非常相似的问题,你的回答解决了它(我在 VirtualBox 上运行 Mac)
  • 非常好的人!我在 14.01.2020 使用 Oracle Virtualbox 最新版本。
  • 我似乎有类似的问题,但这似乎对我不起作用。 :-(
  • 你救了我的命
  • 我花了 3 天时间在谷歌上搜索并重新安装东西,直到这个解决方案才起作用。谢谢!
猜你喜欢
  • 2020-03-18
  • 2020-02-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-11-05
  • 2014-12-03
  • 1970-01-01
相关资源
最近更新 更多