You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.
I installed ECSlidingViewController using Cocoapods. When running unit tests, any view controller that accesses the -slidingViewController property ends up failing because -slidingViewController returns nil. This happens despite the fact that -isKindOfClass and NSStringFromClass both agree that the view controller should be an ECSlidingViewController.
The text was updated successfully, but these errors were encountered:
I tried this out and it looks like Cocoapods doesn't link the test target for some reason. I was able to fix it by telling Cocoapods to link with the test target along with the regular target:
@enriquez
This looks like a Test/POD issue returning nil for isKindOfClass method. I finally got this working when I changed my Profile to read:
target 'PatientMobile' do
pod 'AFNetworking', '~> 2.4'
pod 'ECSlidingViewController', '~> 2.0.3'
end
target 'PatientMobileTests' do
# this pod is not used by PatientMobileTests, but we need something here to ensure we properly link cocoapods to the PatientMobileTests target
pod 'OCMock', :head
end
link_with 'PatientMobile', 'PatientMobileTests'
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I installed ECSlidingViewController using Cocoapods. When running unit tests, any view controller that accesses the -slidingViewController property ends up failing because -slidingViewController returns nil. This happens despite the fact that -isKindOfClass and NSStringFromClass both agree that the view controller should be an ECSlidingViewController.
The text was updated successfully, but these errors were encountered: