xcode报Error Domain=PlugInKit Code=13错误

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

[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


3077242-790c4d15ae79c170.png
图片.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

转载于:https://www.jianshu.com/p/bbcc13415ca5

猜你喜欢

转载自blog.csdn.net/weixin_33724059/article/details/91262078