Reputation: 1449
I'm coding a swift framework project,
needs to call functions from other objective-c framework,
when I try to using bridge header, I got error,
Is possible to using Objective C class in Swift framework project ?
UPDATED:
the error was
:0: error: using bridging headers with framework targets is unsupported Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
Upvotes: 0
Views: 331
Reputation: 1449
My solution is to wrap the Objective-C classes to a framework, then import the framework to my swift framework.
Upvotes: 1