当我的应用程序显示“保存文件”窗格时,我在 xcode 的输出日志中收到一条我不理解的消息。
消息是 StressIt[38940:6d83] [QL] Can't get plugin bundle info at XTUM/ -- file://localhost/Users/kalle/Library/Developer/Xcode/DerivedData/StressIt-exmfuiykgzqebkbxzzwzsuzawjyk/Build/Products/调试/
我用谷歌搜索它,发现它似乎是 OSX 中的一个常见错误,但找不到与开发目标 c 相关的任何信息。有谁知道这是什么?我做错什么了吗?我可以修复它吗?
我被盗的保存文件的代码
// String to write
NSString * zStr = [[NSString alloc] initWithString:[[resultTextOutlet textStorage] string]];
// Get an URL
NSSavePanel * zSavePanel = [NSSavePanel savePanel];
NSInteger zResult = [zSavePanel runModal];
if (zResult == NSFileHandlingPanelCancelButton) {
return;
}
// Store url where to save the file
NSURL *zUrl = [zSavePanel URL];
// Write file
BOOL zBoolResult = [zStr writeToURL:zUrl atomically:YES encoding:NSASCIIStringEncoding error:NULL];
// Report write error
if (! zBoolResult) {
NSAlert *writeError = [NSAlert alertWithMessageText:@"Error while writing file" defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:@"Something went wrong whilw writing the file to disk."];
[writeError beginSheetModalForWindow:appWindow modalDelegate:nil didEndSelector:nil contextInfo:nil];
}