" Linker command failed with exit code 1 " in unit test?

Viewed 2212

I setup the project by Xcode 8.2.1. I upgrade to Xcode 8.3.2. I can run the project and no error. But when I run the unit test to test my app , I got this problem:

enter image description here

I have tried some ways to solve it. For example: clean the Test host

enter image description here

Or remove the derivedData and clean the app. All of them weren't work for me. I don't known the reason why I got this error. Does anyone can help me? Thanks

4 Answers

If you are here because it seems that you can't see more details about this error, right click and select 'Reveal in Log'.

That happened to me too a couple of times after removing a pod.

I just clean the project (Product --> Clean (Build Folder)) and when rebuilding, the error message is gone.

Related