swift - XCode7 Unit tests fail (compiler error) -
i have created unit test target after app created.
the problem have test fail compiler errors unless manually add each .swift file , library testing target. since app rather large app many files , library dependencies seems rather difficult do.
i have followed advice on post http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/ suggests xcode can setting "bundle loader" , "test host" settings in testing target , setting "symbols hidden default" no in app target, doesn't work.
what right way solve this?
you can add @testable import yourmodule
, classes should available in test case file.
Comments
Post a Comment