Re: Unit testing with mixed Swift & Objective C

2016-07-18 Thread David Catmull
I found another solution: set the header search paths in the test target so it can find the App-Swift.h file from the app target, include that in the ObjC tests that need the Swift classes (instead of the one generated for the test target), and then remove all the app Swift files from the test targ

Unit testing with mixed Swift & Objective C

2016-07-17 Thread David Catmull
After converting some parts of my project to Swift, I've run into some problems with my tests. The first problem was where an app (not test) function, in Swift, was iterating over an NSArray of instances of a Swift class, because that array was generated by Objective C code. It was throwing an