我对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发布于 2012-08-10 02:09:34
您必须执行一些基本设置,类似于Kiwi Wiki上从头开始安装Kiwi的说明(https://github.com/allending/Kiwi/wiki/Guide:-Up-and-Running-with-Kiwi)
H110将主目标的可执行文件的路径添加到单元测试目标中的BundleLoader build设置中:例如。将Kiwi测试$(BUILT_PRODUCTS_DIR)/Foo.app/Foo
发布于 2012-05-25 05:08:21
您的测试依赖于其他Cocoapods依赖项吗?在Podfile中,尝试删除测试目标中的:exclusive => true。这将允许您的其他依赖项包含在您的测试目标中,但将限制Kiwi仅位于您的测试目标中。
https://stackoverflow.com/questions/10741183
复制相似问题