Pergunta

I am new in xcode. I got recurring message error when building for testing:

*PWRequest.m
User defined issues
"ARC is required to compile Pushwoosh SDK"*

In code it shows: #if ! __has_feature(objc_arc) #error "ARC is required to compile Pushwoosh SDK" #endif

I don't understand. I added a new pushwoosh sdk. I thank you very much for your help.

Foi útil?

Solução

  1. You can set ARC on a file basis. Go to the BuildPhases->CompileSources. You can select sources there and pass ARC flag. Same as here: How can I disable ARC for a single file in a project? but with -fobjc-arc flag

  2. You can use XCode project that comes with the SDK. In this case you'll be linking to the output (library) that is produced by this project.

Hope it helps!

Outras dicas

So if you want to use Pushwoosh in your app, you're going to need to turn on ARC in your project settings.

And then you'll be using ARC in your app.

Which is somewhat nicer than doing good old fashioned Manual Retain / Release memory management, yes?

If you are determined to use MRC (manual retain count), then follow the steps in this related question.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top