Can't import my framework into Swift code
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