Importing modules in XCUnitTest
Importing modules in XCUnitTest
- Subject: Importing modules in XCUnitTest
- From: Rick Mann <email@hidden>
- Date: Mon, 01 Aug 2016 19:36:59 -0700
I have a new macOS app project created with Xcode 7. It created a Test target. I converted it to Swift 3 with Xcode 8b3
Little by little, I'm adding source files from my app target to the test target to run unit tests. But one of those files has an "import Logging", referencing a sub-project I created with some code to support logging. While this works fine in the app target (it links against this module Framework), it doesn't work in the test target, and I'm getting "No such module 'Logging'" errors.
Test targets don't have a similar Linked Frameworks section in the General tab.
What's the right way to deal with this? Thanks.
--
Rick Mann
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden