I have a very simple Xcode 7 OS X workspace that includes a custom framework project (I called it MySQLKit) and a Swift playground. I can build the framework and use the public functions from the playground: very cool.
I'd like to include a static library in the framework (libmysqlclient.a in this case, but this problem occurs with seemingly any library).
As soon as I link the library into the framework, either through the "Link Binary With Libraries" build phase or through Other Linker Flags using -lmysqlclient, I start getting these errors in the playground:
Playground execution failed: error: Couldn't lookup symbols:
_MySQLKitVersionNumber
__TF8MySQLKit11testIntegerFT_Si
This happens regardless of whether I actually use any symbols from the static library: simply linking it into the framework seems to make the framework ununsable from the playground.
Not sure whether this is expected behaviour or a bug?