Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

XCode Error Trying to Unit Test Plugin

Discussion in 'iOS and tvOS' started by drhodor, Jul 8, 2015.

  1. drhodor


    Aug 18, 2013
    I make a build for iPhone (for device, set to "Development Build") in Unity, then I add my Test .m files (as I have a custom plugin for unity) as a group (tan folder) and set them to the Test Target, but when I try to execute the test target I get "Lexical or Preprocessor Issue 'XCTest/XCTest.h' file not found" wherever I have an import eg. "#import "

    How can I add the XCTest Framework / link it so that my project created in Unity will run with my Test files?

    Question is up here too, if you want to help others who might have this issue trying to write tests for their Unity plugins :)