Reputation: 7797
I am new to both Kiwi and Cocoapods. I have Cocoapods up and running however even before I start playing with Kiwi my testing target fails with errors like this:
Undefined symbols for architecture i386:
"_CGRectZero", referenced from:
-[EGOImageButton initWithPlaceholderImage:delegate:] in libPods.a(EGOImageButton.o)
This is my 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
Upvotes: 4
Views: 2246
Reputation: 2963
You'll have to do some basic setup, similar to the instructions on the Kiwi Wiki for installing Kiwi from scratch (https://github.com/allending/Kiwi/wiki/Guide:-Up-and-Running-with-Kiwi)
Upvotes: 3
Reputation: 357
Do your tests rely on your other Cocoapods dependencies? In your Podfile, try removing the :exclusive => true
in your test target. This will allow your other dependencies to be included in your test target, but will limit Kiwi to only be in your test target.
Upvotes: 3