Skip to content

HipByte/BridgeSupport

 
 

Repository files navigation

BridgeSupport

(Imported from http://code.metager.de/source/xref/apple/BridgeSupport.)

BridgeSupport files are XML files that describe the API symbols of frameworks or libraries that cannot be introspected at runtime.

These are generally ANSI C symbols that are non-object-oriented items such as constants, enumerations, structures, and functions but can also include some additional information about classes, methods, and informal protocols.

BridgeSupport files are a major component of the Objective-C bridges (RubyCocoa, PyObjC) and languages (MacRuby) which permit Cocoa development.

BridgeSupport comes with pre-generated files for all the system frameworks, as well as a tool that allows you to generate files for 3rd party frameworks or libraries. The sources are covered under a BSD license.

BridgeSupport has shipped in Mac OS X since version 10.5, Leopard. This project hosts development versions of BridgeSupport. Developers are encouraged to download the sources and report problems.

Most recently, BridgeSupport has been rewritten to use the clang parser and provide more complete coverage of all APIs on the system. Please see the Releases page for more information

Requirements

  • cmake
  • subversion

You can install cmake and subversion with following command.

$ brew install cmake subversion

Using the Metadata Generator

The metadata generator, as known as gen_bridge_metadata, is documented in a manual page. After having installed the project in your system, you can display the documentation:

$ man gen_bridge_metadata

About the BridgeSupport Format

Likewise the generator, the BridgeSupport XML format is documented in a manual page.

$ man BridgeSupport

There is also a DTD file available, that should be installed as /System/Library/DTDs/BridgeSupport.dtd.

Note: macOS 10.14 Mojave

When using on macOS 10.14 Mojave, system bundled ruby fails with require 'bridgesupportparser' and cause a crash. You can avoid the problem with adding following configuration in your .bashrc or .zshrc.

export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

Packages

No packages published

Languages

  • C++ 48.8%
  • Ruby 40.2%
  • Roff 5.6%
  • Makefile 2.7%
  • Objective-C 2.2%
  • Perl 0.3%
  • Other 0.2%