iOS Xcode 11.1 GM Seed 附带的模拟器 (11.1) 似乎无法启动 iOS 13.1 设备

iOS Simulator (11.1) that comes with Xcode 11.1 GM Seed seems to be unable to boot iOS 13.1 devices

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

在 Xcode 中,我为单个视图 iOS 应用创建了一个新项目。我编译它没有任何变化,构建成功。默认情况下,它会在 iOS 13.1.

上启动 iPhone 11 Pro Max

模拟器启动,设备 window 出现,进度条持续一段时间。一段时间后,黑屏上出现了一个旋转的指示器,但什么也没有发生。这持续了几分钟,之后 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 没有问题,或者项目本身。

在模拟器里,我也试过"Erase All Contents and Settings",好几次都没有用。 我尝试启动新设备,并且 iOS 12.2 上的 iPhone 6s 在第一次尝试时成功加载。另一方面,我一直在尝试 iOS 13.1 与 iPhone 11 Pro Max 和 iPhone 8 设备,但在一些加载后都卡住了。

有时我也会这样: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+ 生成代码,但它对我大喊 "some"、"View" 等是针对较新版本的。

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

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

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

打开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