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.
-
Hey Buddy Just Follow this url....[Swift And Objective-c][1] [1]: stackoverflow.com/questions/24002369/…Parvendra Singh– Parvendra Singh2014-06-13 10:20:41 +00:00Commented Jun 13, 2014 at 10:20
Add a comment
|
1 Answer
I forgot to add the objc bridging header to the swift compiler in the build settings. This solved me the problem.
2 Comments
Wojtek Turowicz
how do you add the bridging header?
emidander
@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/…