[Swift] [Xcode11]构建成功,但iOS模拟器未启动

时间:2020-03-02 05:37:25

标签: ios swift xcode11

构建成功,但iOS模拟器无法启动。

当我打开“编辑方案”时,“运行”的“可执行”设置为“无”。

我认为这是原因,但是选项中没有“ project name.app”。

Edit Schemes

模拟器系统日志中显示以下错误:

无法引导路径:path = /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr / lib / dyld_sim,错误= 2:没有此类文件或目录

无法引导路径: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,错误= 2:无此类文件或目录

断言失败:19E242d 17E5233e:com.apple.alarm + 4116 [3A8B133A-F812-3AF3-A390-C970E8DBF8C9]:0x0

2 个答案:

答案 0 :(得分:0)

我认为您正在使用一些不同的方案。转到“新方案”并添加一个新方案。然后运行您的项目。

答案 1 :(得分:0)

尝试重置要在其中运行的模拟器。启动模拟器,请按照以下步骤操作

硬件->删除所有内容和设置->运行应用程序。

如果它不起作用,请附加尝试启动模拟器时在Xcode上看到的错误。