select on my App and add a target for unit test, be careful that there are different templates for iOS and OS X applications.
find my sub project of Cordovalib.xcodeproj, remove all architectures configurations and select $(ARCHS_STANDARD) for both project and targets settings.
select on just created test targets -> Build Phases -> add link libraries as below:
SystemConfiguration.framework, MobileCoreService.framework, CoreLocation.framework, AssetsLibrary.framework
add my test cases and run unit tests