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.

you can read little bit more here , apple docs.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -