错误消息:ARC需要编译Pushwoosh SDK [英] Error Message: ARC is required to compile Pushwoosh SDK

查看:92
本文介绍了错误消息:ARC需要编译Pushwoosh SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是xcode的新手. 构建测试时出现重复的消息错误:

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"*

在代码中显示: #如果 ! __has_feature(objc_arc) #error需要ARC才能编译Pushwoosh SDK" #endif

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

我不明白.我添加了一个新的pushwoosh SDK. 非常感谢您的帮助.

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

推荐答案

  1. 您可以基于文件设置ARC.转到BuildPhases-> CompileSources.您可以在那里选择源并通过ARC标志. 与这里相同: 如何禁用单个ARC文件中的项目? 但是带有-fobjc-arc标志

  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

您可以使用SDK随附的XCode项目.在这种情况下,您将链接到该项目产生的输出(库).

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.

希望有帮助!

这篇关于错误消息:ARC需要编译Pushwoosh SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆