One Quickie


Fixing undefined symbols when building plugins (Xcode->General)
If you have a plugin defined as a "Cocoa Bundle" target in Xcode, and your plug-in inherits from a class that's defined in the application, you may get a build error like:

ld: Undefined symbols:
.objc_class_name_BWTrackerPlugin
You can fix this by adding -undefined dynamic_lookup to the "Other Linker Flags" of the Build Tab of the Target Settings for your plugin (whew!). You also need to make sure that the "Mac OS X Deployment Target" is 10.2 or later before using this flag.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com