创建 Cocoapods with/without 自动引用计数

Create Cocoapods with/without automatic reference counting

我刚开始学习如何创建 cocoapods。我按照本教程进行操作,一切正常。

http://code.tutsplus.com/tutorials/creating-your-first-cocoapod--cms-24332

问题是一些项目文件使用 ARC 但有些不使用。如果我写这段代码,

s.requires_arc = false

我遇到这样的错误。

ERROR | [iOS] xcodebuild: WWAutoupdate/WWAutoupdate/Classes/Library/Hawk/Base64/NSData+Base64.m:39:2: error: This library requires automatic reference counting

如果我不写,我又得到了一个不使用arc的错误。如何将 arc 和非 arc 文件放在我的 cocoapods 中?在我的构建阶段,我已经指定了 -fno-objc-arc。

requires_arc 可以取 array of files 例如requires_arc = ["folder/no-arc/*"]