Recently I have started writing test case for one old static library. I have loaded the library to Xcode 5,Since Static Library is old , I have to manually add TestProject w
I found the answer by myself.
Your Build Settings -> Architectures should be same for Library and Test Project
Architectures -> Architectures = Standrad Architectures (armv7 ,armv7s , arm64)$(ARCHS_STANDARD)
Your Test Project's Linking -> Mach-O Type should be Bundle
Linking -> Mach-O Type = Bundle
Do Build and Run Tests. Thats it
For me this issue was due to the "iOS Deployment Target" Build Setting being different in my test target than my main app. Once I made them the same the problem went away.
I had a similar problem. For me, the problem was a unit testing framework that was a dynamic framework but not copied over to the xctest bundle.
The solution was to add a "Copy Files" phase to my unit test target, set its destination to "Frameworks" and add my framework as an input file.
I was able to resolve this issue by setting the host application for the test target: