Xcode 7.3 操作无法完成(LaunchServicesError 错误 0)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36981676/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 7.3 The operation couldn't be completed (LaunchServicesError error 0)
提问by user2529173
I've updated to Xcode 7.3 yesterday and can't really use the simulator since then. I always get this error as soon as I want to start to the app. When I deinstall the app on the simulator, everything works great. But that can't be a solution. This would take to long. I have also tried different simulators. On the iPhone itself it worked. I changed nothing since the upgrade
我昨天更新到 Xcode 7.3,从那以后就不能真正使用模拟器了。一旦我想开始使用该应用程序,我总是会收到此错误。当我在模拟器上卸载应用程序时,一切正常。但这不能成为解决方案。这需要很长时间。我也尝试过不同的模拟器。在 iPhone 本身它工作。升级后我什么都没变
回答by Ronak Chaniyara
May be it's because CFBundleVersion
key/value pair in app's Info.plist
.
可能是因为CFBundleVersion
应用程序的Info.plist
.
If your app's Info.plist does not contain a valid CFBundleVersion key/value pair.
如果您的应用程序的 Info.plist 不包含有效的 CFBundleVersion 键/值对。
doing a "Reset Contents & Settings" will work, would be better to set an appropriate CFBundleVersion
in the Info.plist
.
做一个“重置内容和设置”会起作用,最好CFBundleVersion
在Info.plist
.
you can check more error info in ~/Library/Logs/CoreSimulator/CoreSimulator.log
for error details also, more information about the problem in the simulated device's system log ~/Library/Logs/CoreSimulator/[Device UDID]/system.log
.
您还可以查看更多错误信息以~/Library/Logs/CoreSimulator/CoreSimulator.log
获取错误详细信息,以及有关模拟设备系统日志中问题的更多信息~/Library/Logs/CoreSimulator/[Device UDID]/system.log
。
For more detail check here: https://stackoverflow.com/a/26129829/5575752
有关更多详细信息,请查看此处:https: //stackoverflow.com/a/26129829/5575752
回答by Nico
"Reset Content and Settings" from iOS Simutalor menu options and launching simulator after Quitting may solve your issue.
iOS Simutalor 菜单选项中的“重置内容和设置”和退出后启动模拟器可能会解决您的问题。
In my case, Cleaning the build folder resolved the issue for me. I hope it helps someone!
就我而言,清理构建文件夹为我解决了这个问题。我希望它可以帮助某人!
(While holding down the Alt-key: Product > Clean build folder)
(同时按住Alt 键:产品 > 清理构建文件夹)