如何在项目之间添加ARC [英] how to add ARC in between of project

查看:175
本文介绍了如何在项目之间添加ARC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建iPhone应用程序,在此之间我需要使用 SDWebImage 。为此,我需要使用ARC。

I am creating iPhone app and in between I need to use SDWebImage. For this I need to use ARC.

任何想法如何在项目之间添加ARC?

Any idea how to add ARC in between in project?

注意:在一个文件中,我有以下内容。

Note: In one file I have below content.

#if !__has_feature(objc_arc)
#error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag
#endif

其中我应该添加 -fobjc-arc 标志?

推荐答案

Select Project Form Project Manager
  |
  | 
  Targets
       |
       |
     Build Phases
          |
          |
        Compile Sources
                |
                |
            Select File that you Want to crate as ARC. (You can also Select Multiple File name from here)
                        |
                        |
                    Press "ENTER" key
                           |
                           |
                      Popup Box/Window is displayed 
                               |
                               |
                            Write here - '-fno-objc-arc'
                                    |
                                    |
                                And again Press 'ENTER' key.

Your selected file is being ARC.

这篇关于如何在项目之间添加ARC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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