Add unit test for XCode project

Steps:

  1. select on my App and add a target for unit test, be careful that there are different templates for iOS and OS X applications.

  2. find my sub project of Cordovalib.xcodeproj, remove all architectures configurations and select $(ARCHS_STANDARD) for both project and targets settings.

  3. select on just created test targets -> Build Phases -> add link libraries as below:

    SystemConfiguration.framework, MobileCoreService.framework, CoreLocation.framework, AssetsLibrary.framework

  4. add my test cases and run unit tests

你可能感兴趣的:(Add unit test for XCode project)