美文网首页
xcode报Error Domain=PlugInKit Cod

xcode报Error Domain=PlugInKit Cod

作者: ljzza | 来源:发表于2019-06-03 13:50 被阅读0次

调用系统相册上传到服务器,就出现了这个错误

[discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}

解决办法:

打开 Product > Scheme > Edit Scheme
添加环境变量:OS_ACTIVITY_MODE 值:disable


图片.png

但是这样会出现新的问题

所有的nslog! 都没了!

怎么办呢,我这边的解决办法是在pch中改下log:

#ifdef DEBUG
#define NSLog(format,...) printf("\n[%s] %s [第%d行] %s\n",__TIME__,__FUNCTION__,__LINE__,[[NSString stringWithFormat:format,## __VA_ARGS__] UTF8String]);
#else
#define NSLog(format, ...)
#endif

这样子就好啦!!!

参考文章:https://my.oschina.net/rainwz/blog/2218590

相关文章

网友评论

      本文标题:xcode报Error Domain=PlugInKit Cod

      本文链接:https://www.haomeiwen.com/subject/hircxctx.html