How to make GDATAXML compatible with ARC in XCODE 4.2?

I tried to convert GDATAXML Lib to ARC automatically with a refractor -> Convert to Objective-C ARC in Xcode 4.2.

The ARC converter gives the following error:

result = [NSString stringWithUTF8String:(const char *) chars]; if (cacheDict) { // save the string in the document string cache CFDictionarySetValue(cacheDict, chars, result); } 

error: Fuzzy conversion of an Ojective-C pointer to void.

Has anyone succeeded in converting GDATAXML Libs to ARC Objective-C?

+6
source share
3 answers

follow the instructions on how to get GDataXML to work with your code: http://ibombsite.blogspot.com/2012/02/how-to-make-gdataxmlnode-work.html

+7
source

I found a person who (apparently successful) did refactoring for ARC.

see http://www.michaelbabiy.com/arc-compliant-gdataxml-library/

+3
source

You need to use bridge translation:

CFDictionarySetValue(cacheDict, chars, (__bridge_retained_void*) result);

Check out the Apple article "Transition to ARC," especially the part about the bride .

0
source

Source: https://habr.com/ru/post/906065/


All Articles