(TODO: mention exception files, when to generate bridgesupport and when not to and link to ApplicationBridgeSupport or NonFrameworkBridgeSupport)
grab the script
generate bridge support
copy the bridge support file into the framework
use it
grab the script
$ svn co https://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/src
generate bridge support
$ cd src/misc/bridgesupport
$ ruby gen_bridge_metadata -f /path/to/framework_with_headers -o /tmp/frameworkname.bridgesupport
$ ruby gen_bridge_metadata -f /path/to/framework_with_headers -o /tmp/frameworkname.bridgesupport
copy the bridge support file into the framework
$ mkdir -p /path/to/framework/Resources/BridgeSupport
$ mv /tmp/frameworkname.bridgesupport /path/to/framework/Resources/BridgeSupport/
$ mv /tmp/frameworkname.bridgesupport /path/to/framework/Resources/BridgeSupport/
use it
require 'osx/cocoa'
OSX.require_framework('/path/to/framework_with_bridgesupport')
OSX.require_framework('/path/to/framework_with_bridgesupport')