Linker errors in Swift app with a framework bundle

I have a simple test project which has a framework bundle (as a target). See attached screenshots.

When I import MyFramework and use classes from the framework, the app compiles fine but got linker errors. It seems Xcode does not automatically link the bundle into the app.

It’s hard to tell from your screenshots but I think you need to add the frameworks to the target. Under General > Frameworks, Libraries and Embedded Content hit the + Button and add the frameworks.

Ah, it's my fault. Framework in a bundle just won't work. I have to create a new target with a Framework type. Now my test app runs.

Linker errors in Swift app with a framework bundle
 
 
Q