Buck: prebuilt_apple_framework()


A prebuilt_apple_framework() rule represents a set of Objective-C/C++ source files and is very similar to a prebuilt_cxx_library() rule.


  • preferred_linkage (required) #

    How to link to a binary: use dynamic for a dynamic framework, and static for old universal static frameworks manually lipo-ed together. dynamic will copy the frameworks into the Frameworks directory of an Apple bundle, and configure framework search paths and linker flags.static will copy the resources of the framework into an Apple bundle.

  • visibility (defaults to []) #

    List of build target patterns that identify the build rules that can include this rule in its deps.

  • licenses (defaults to []) #

    Set of license files for this library. To get the list of license files for a given build rule and all of its dependencies, you can use buck query.

  • labels (defaults to []) #

    Set of arbitrary strings which allow you to annotate a build rule with tags that can be searched for over an entire dependency tree using buck query attrfilter.


  name = 'MyPrebuiltFramework',
  framework = 'myPrebuiltFramework.framework',
  preferred_linkage = 'static',
  visibility: [