调用系统相册上传到服务器,就出现了这个错误
[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

但是这样会出现新的问题
所有的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
这样子就好啦!!!
网友评论