0

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

1
  • Yes it is, but you'll need to provide more details as to what error you are seeing if you expect a better answer than this. Commented Oct 6, 2014 at 8:47

1 Answer 1

1

My solution is to wrap the Objective-C classes to a framework, then import the framework to my swift framework.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.