我是 Kiwi 和 Cocoapods 的新手。我已经启动并运行了 Cocoapods,但是即使在我开始使用 Kiwi 之前,我的测试目标也失败了,错误如下:
Undefined symbols for architecture i386:
"_CGRectZero", referenced from:
-[EGOImageButton initWithPlaceholderImage:delegate:] in libPods.a(EGOImageButton.o)
这是我的 Podfile:
platform :ios
dependency 'RestKit/Network', '~>0.10.0'
dependency 'RestKit/UI', '~>0.10.0'
dependency 'RestKit/ObjectMapping', '~>0.10.0'
dependency 'RestKit/ObjectMapping/XML', '~>0.10.0'
dependency 'RestKit/ObjectMapping/JSON', '~>0.10.0'
dependency 'RestKit/ObjectMapping/CoreData', '~>0.10.0'
dependency 'SVProgressHUD'
dependency 'EGOImageLoading'
dependency 'OHAttributedLabel'
dependency 'SFHFKeychainUtils'
target :test, :exclusive => true do
dependency 'Kiwi'
end
最佳答案
您必须进行一些基本设置,类似于 Kiwi Wiki 上用于从头安装 Kiwi ( https://github.com/allending/Kiwi/wiki/Guide:-Up-and-Running-with-Kiwi ) 的说明
关于cocoa-touch - 如何使用 Cocoapods 设置 Kiwi?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10741183/