Anthony Kong
Anthony Kong

Reputation: 40624

'JSONKit.h' not found when I run 'Test' of my Project in Xcode 5

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:

enter image description here

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

Answers (1)

Anthony Kong
Anthony Kong

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

Related Questions