gpt4 book ai didi

cocoa-touch - 如何使用 Cocoapods 设置 Kiwi?

转载 作者:行者123 更新时间:2023-12-05 00:34:23 25 4
gpt4 key购买 nike

我是 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

最佳答案

您的测试是否依赖于其他 Cocoapods 依赖项?在您的 Podfile 中,尝试删除 :exclusive => true在您的测试目标中。这将允许您的其他依赖项包含在您的测试目标中,但会将 Kiwi 限制为仅包含在您的测试目标中。

关于cocoa-touch - 如何使用 Cocoapods 设置 Kiwi?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10741183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com