So today I ran into a major problem. I got a problem involving my viewcontroller on xcode 4.3.2 as seen in this error message:
Undefined symbols for architecture i386: "_OBJC_CLASS_$_SecondViewController", referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_ThirdViewController", referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_FourthViewController", referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_Author", referenced from: objc-class-ref in Birdflix_ProViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I noticed that these errors only appear when I program IBActions linking my viewcontroller to additional classes. If I delete the IBActions the errors disappear. Any help is appreciated.
Finally found the answer. In your target settings, locate build phases and navigate to compile sources. Once there just ad the .m file that is getting the error to the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With