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

项目运行报错

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容