简体   繁体   中英

[Swift][Xcode11]Build succeeds, but iOS simulator does not start

Build succeeds, but iOS simulator does not start.

When I opened "Edit Schemes", the "Executable" setting of "Run" was "None".

I think this is the cause, but there is no "project name.app" in the options.

编辑方案

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

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

assertion failed: 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM