Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`

runner tests
runner tests

Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner` and `Share Extension`.

`RunnerTests`
Unable to find a target named `RunnerTests` in project `Runner.xcodeproj`, did find `Runner` and `Share Extension`.

`RunnerTests`

This runtime exception is one of the anyone exception for mobile app developer in IOS. This is nothing but an extension or a sub project inside your app to create automated tests.

Usually we programmer likes to get it done and don’t write tests so we don’t know what the hell is it?.

A quick solution to this run time exception is:

Head to your ios>Podfile and remove/comment this code:

 target ‘RunnerTests’ do

 inherit! :search_paths

 end

`RunnerTests`

Problem Explanation

This occurs because your Podfile looks for an extension app called “RunnerTests” which should have some test cases. This target is automatically created with your project. This exception occurs due to if its deleted or its name/directory has been changed. If you don’t use tests then you can remove the target or comment the code in Podfile to avoid conflict.

Subscribe my YouTube Channel for more useful tips or checkout these blogs.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *