Reputation: 40624
I used CocoaPods to add JSONKit to project.
Now I want to create a unit test of a function in my project which uses JSONKit function.
When I hit ⌘U to run the test, I got this error message:
I am positive the project can compile can run without problem when I hit ⌘R ('Run')
What is the reason for the error message? How can I fix it?
I am using XCode 5.0.2
Upvotes: 0
Views: 531
Reputation: 40624
It is actually a Pod file setup problem.
I need to add the following as the first line in my podifle.
link_with ['Questions', 'QuestionsTests']
Then rerun pod install
and reopen workspace in xcode.
Upvotes: 1