• 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
Can't import my framework into Swift code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't import my framework into Swift code


  • Subject: Can't import my framework into Swift code
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 20 May 2015 11:40:03 -0700

I’m building a Mac demo app with Swift. I’ve added my framework to the project and the target. But when I try to use “import MyFramework” in Swift code, the compiler complains “No such module ‘MyFramework’”.

Defines Module is enabled in the framework’s build settings, and the Product Module Name is "MyFramework”. So why isn’t this working? (Is there a way I can examine the built framework to verify that it’s a module?)

(I can work around this by adding a bridging header that #imports MyFramework.h. But I want the framework to work the usual way for developers’ Swift targets, so I need to fix this problem.)

—Jens
 _______________________________________________
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


  • Follow-Ups:
    • Re: Can't import my framework into Swift code
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: The never ending joy of iOS certificate creation.
  • Next by Date: Re: Can't import my framework into Swift code
  • Previous by thread: Re: The never ending joy of iOS certificate creation.
  • Next by thread: Re: Can't import my framework into Swift code
  • Index(es):
    • Date
    • Thread