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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to