[英][Swift][Xcode11]Build succeeds, but iOS simulator does not start
Build succeeds, but iOS simulator does not start.构建成功,但 iOS 模拟器没有启动。
When I opened "Edit Schemes", the "Executable" setting of "Run" was "None".当我打开“Edit Schemes”时,“Run”的“Executable”设置为“None”。
I think this is the cause, but there is no "project name.app" in the options.我认为这是原因,但选项中没有“项目名称.app”。
The following error was displayed in the simulator system log:模拟器系统日志显示如下错误:
Failed to bootstrap path: path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim, error = 2: No such file or directory无法引导路径:path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ dyld_sim, error = 2: 没有那个文件或目录
Failed to bootstrap path: path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreLocationProtobuf.framework/CoreLocationProtobuf, error = 2: No such file or directory无法引导路径:path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/ PrivateFrameworks/CoreLocationProtobuf.framework/CoreLocationProtobuf, error = 2: No such file or directory
assertion failed: 19E242d 17E5233e: com.apple.alarm + 4116 [3A8B133A-F812-3AF3-A390-C970E8DBF8C9]: 0x0断言失败:19E242d 17E5233e:com.apple.alarm + 4116 [3A8B133A-F812-3AF3-A390-C970E8DBF8C9]:0x0
I think you are using some different scheme.我认为你正在使用一些不同的方案。 Go to New Scheme and add a new one.转到 New Scheme 并添加一个新方案。 And run your project through that.并通过它运行您的项目。
Try resetting your simulator in which you are trying to run.尝试重置您尝试运行的模拟器。 Launch the simulator, follow the below steps启动模拟器,按照以下步骤操作
Hardware -> Erase all contents and settings -> Run the app.硬件 -> 擦除所有内容和设置 -> 运行应用程序。
If it doesn't work please attach the error that you seeing on Xcode when you are trying to launch the simulator.如果它不起作用,请附上您在尝试启动模拟器时在 Xcode 上看到的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.