Cocoa touch 我如何用椰子荚设置猕猴桃?
我对猕猴桃和椰子荚都是新手。我已经安装并运行了CoCoapod,但即使在我开始玩猕猴桃之前,我的测试目标也失败了,错误如下:Cocoa touch 我如何用椰子荚设置猕猴桃?,cocoa-touch,unit-testing,cocoapods,kiwi,Cocoa Touch,Unit Testing,Cocoapods,Kiwi,我对猕猴桃和椰子荚都是新手。我已经安装并运行了CoCoapod,但即使在我开始玩猕猴桃之前,我的测试目标也失败了,错误如下: Undefined symbols for architecture i386: "_CGRectZero", referenced from: -[EGOImageButton initWithPlaceholderImage:delegate:] in libPods.a(EGOImageButton.o) 这是我的播客文件: platform :ios d
Undefined symbols for architecture i386:
"_CGRectZero", referenced from:
-[EGOImageButton initWithPlaceholderImage:delegate:] in libPods.a(EGOImageButton.o)
这是我的播客文件:
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
您的测试是否依赖于其他Cocoapods依赖项?在pod文件中,尝试删除测试目标中的
:exclusive=>true
。这将允许您的其他依赖项包含在测试目标中,但会将Kiwi限制为仅包含在测试目标中。您必须进行一些基本设置,类似于Kiwi Wiki上关于从头安装Kiwi的说明()
有人能帮我做个猕猴桃标签吗?谢谢。另外,我不得不向测试主机添加$(BUNDLE\u LOADER)