iOS Swift unit test result in unresolved identifier -


simple function in swift testing:

func testexample() {     var tagname = "someclass()"     var logger = device("", "") //unresolved identifier      xctassert(true, "pass") } 

even after import module "import ", still cannot use classes module. though might have messed in project, none of sample projects let me use module classes.

seems should work might have broken in beta 2.

edit: fixed ide didn't pick check param names. seems xcode still tad iffy

i hit same issue today, not sure if available - rather using import target_name in test file and/or declaring classes/methods public, can add file tests target via xcode's file inspector.

cmd + opt + 1 show while in file, , check box under target membership tests target.

file inspector - target membership

you may need rebuild.... cmd + b.

should specific system.... i'm running xcode 6.3 beta 1, , testing via quick + nimble, both installed latest cocoapods beta.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -