• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Importing modules in XCUnitTest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Signing requires selecting either a development team or a provisioning profile. Select a development team or a provisioning profile in the Target Editor.
  • Next by Date: Re: Signing requires selecting either a development team or a provisioning profile. Select a development team or a provisioning profile in the Target Editor.
  • Previous by thread: Re: Signing requires selecting either a development team or a provisioning profile. Select a development team or a provisioning profile in the Target Editor.
  • Next by thread: Very annoying and potentially dangerous "feature" of XCode
  • Index(es):
    • Date
    • Thread