Here's my configuration :
Pod X
: Linked with MyProjectSharedCode
, declares class SomeClass
(in Objective C)MyProjectExtension
: Today extension, sharing data with MyProject
MyProject
: Companion app to configure MyProjectExtension
MyProjectSharedCode
: Embedded framework for common code in MyProject
and MyProjectExtension
. Uses SomeClass
.I can't get it working. I've tried :
PodX.h
in MyProjectSharedCode.h
, but it results in a compiler error :include of non-modular header inside framework module
Any help/leads would be much appreciated.
There's a good post that came out today about using the development branch of Cocoapods 0.36.0 which is where frameworks/swift support is being added.
http://swiftwala.com/cocoapods-is-ready-for-swift/
Baring that I've been linking pods into a framework and then including the headers in the bridging header. Its a little wacky but it works so long as you don't want to write swift that uses the pods in the framework itself.
Edit The pre-release version of 0.36.0 is out you can see the blog post here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With