The operation couldn’t be completed. (LaunchServicesError error 0.)

项目运行报错

The operation couldn’t be completed. (LaunchServicesError error 0.)_第1张图片
error

以为是我动了luanch的相关文件,排查结果发现其实是动了第三方库的info.plist文件。

strackflow里

歪果仁是这样回答的

May be it's because CFBundleVersion key/value pair in app's Info.plist.

If your app's Info.plist does not contain a valid CFBundleVersion key/value pair.

doing a "Reset Contents & Settings" will work, would be better to set an appropriate CFBundleVersion in the 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.

For more detail check here: http://stackoverflow.com/a/26129829/5575752

你可能感兴趣的:(The operation couldn’t be completed. (LaunchServicesError error 0.))