1

I'm facing issue in adding ObjectC files to my swift project. I have added the .h and .m files, created the bridging objc header file with name <#projectname#>-Bridging-Header.h. My .m file is also visible in the build face compile source. But when i try to access my objc class in swift methods. I get this compiler error Use of unresolved identifier 'xxxxx' Any help is deeply appreciated.

1

1 Answer 1

3

I forgot to add the objc bridging header to the swift compiler in the build settings. This solved me the problem.

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

2 Comments

how do you add the bridging header?
@Turowicz The bridging header is a regular header that you specify as a "Objective-C Briding Header" in the Swift compiler settings. For more details, see developer.apple.com/library/ios/documentation/swift/conceptual/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.