Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使GDATEXML与XCODE 4.2中的ARC兼容?_Xcode_Automatic Ref Counting_Gdataxml - Fatal编程技术网

如何使GDATEXML与XCODE 4.2中的ARC兼容?

如何使GDATEXML与XCODE 4.2中的ARC兼容?,xcode,automatic-ref-counting,gdataxml,Xcode,Automatic Ref Counting,Gdataxml,我尝试使用XCode 4.2中的折射器->转换为ARC Objective-C将GDATEXL库自动转换为ARC 电弧转换器产生以下错误: result = [NSString stringWithUTF8String:(const char *) chars]; if (cacheDict) { // save the string in the document's string cache CFDictionarySetValue(cacheDict, chars,

我尝试使用XCode 4.2中的折射器->转换为ARC Objective-C将GDATEXL库自动转换为ARC

电弧转换器产生以下错误:

  result = [NSString stringWithUTF8String:(const char *) chars];
  if (cacheDict) {
    // save the string in the document's string cache
    CFDictionarySetValue(cacheDict, chars, result);
  }
错误:将Objective-C指针转换为无效


是否有人成功地将GDATEXML库转换为ARC Objective-C?

您需要使用桥接转换:

CFDictionarySetValue(cacheDict,chars,(\uu bridge\u reserved\u void*)结果)

查看苹果的文章,尤其是

请按照有关如何使GDataXML在代码上工作的说明进行操作:

我发现有人(显然成功地)为ARC进行了重构


请参阅:

我将为您保存一个单击-选择构建阶段选项卡。展开编译源代码。选择GDataXMLNode.m,然后按Enter键。在弹出的小输入框中,输入-fno objc arc。