2

I am using both Objective-C and Swift languages in a single project. MainViewController is Objective-C language. I want use this controller method in Swift class using create MainViewController object like:

var mainobj = MainViewController()
mainobj.sample

I already completed the bridging process and checked compiled source and finally got a clean built project so, what's the problem? Thanks in advance.

Undefined symbols for architecture i386: "_OBJC_CLASS_$_FontList", referenced from: type metadata accessor for __ObjC.FontList in KeyboardViewController.o "_OBJC_CLASS_$_MainViewController", referenced from: type metadata accessor for __ObjC.MainViewController in KeyboardViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 
Frank Shearar
  • 17,012
  • 8
  • 67
  • 94
ikbal
  • 1,114
  • 1
  • 11
  • 30
  • can you show the full stack trace – Anbu.Karthik May 11 '16 at 09:13
  • Undefined symbols for architecture i386: "_OBJC_CLASS_$_FontList", referenced from: type metadata accessor for __ObjC.FontList in KeyboardViewController.o "_OBJC_CLASS_$_MainViewController", referenced from: type metadata accessor for __ObjC.MainViewController in KeyboardViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) – ikbal May 11 '16 at 09:17
  • i I'm using both class FontList & MainViewController – ikbal May 11 '16 at 09:19
  • see this once bro http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-referenc – Anbu.Karthik May 11 '16 at 09:20
  • i already try this @Anbu.Karthik – ikbal May 11 '16 at 09:21
  • import your mainViewController in bridge class – Satyanarayana May 11 '16 at 09:47

0 Answers0