Xcode 错误收集及解决办法

1、An unknown error occurred.

如果仅仅提示“An unknown error occurred.” 而没有别的提示,很有可能是设备内存已满,没有足够的空间来安装这个应用。

2、BSXPCMessage received error for message: Connection interrupted

我在图片识别,生成CIImage 时报出此东警告。

通过设置 CIContext 的options 可以消除此警告---不过,过滤器的效率好像会变慢一点

 1 NSData *imageData = UIImageJPEGRepresentation(image, 1);
 2         
 3 // kCIContextUseSoftwareRenderer : 软件渲染 -- 可以消除 "BSXPCMessage received error for message: Connection interrupted" 警告
 4 // kCIContextPriorityRequestLow : 低优先级在 GPU 渲染-- 设置为false可以加快图片处理速度
 5 CIContext *context = [CIContext contextWithOptions:@{kCIContextUseSoftwareRenderer : @(true), kCIContextPriorityRequestLow : @(false)}];
 6         
 7 CIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeQRCode context:context options:nil];
 8 CIImage *ciImage = [CIImage imageWithData:imageData];
 9         
10 NSArray *ar = [detector featuresInImage:ciImage];
11 CIQRCodeFeature *feature = [ar firstObject];
12 NSLog(@"context: %@", feature.messageString);
View Code

 

3、“(null)” is of a model that is not supported by this version of Xcode. Please use a different device.

重启 Xcode 就好

你可能感兴趣的:(Xcode 错误收集及解决办法)