- Qbs Manual
- QbsProbes
- FrameworkProbe
- Qbs 3.3.0

# FrameworkProbe

Locates macOS frameworks outside the project. More...

Inherits: | PathProbe

- List of all members, including inherited members
- FrameworkProbe is part of List of All Items.

## Detailed Description

Finds macOS frameworks that have the specified file names.

By default, FrameworkProbe searches for frameworks in `~/Library/Frameworks`, `/usr/local/lib`, `/Library/Frameworks`, and in `/System/Library/Frameworks`.

Also, if qbs.sysroot is specified (for example, when compiling using XCode SDK), the probe searches in the `sysroot/System/Library/Frameworks` folder first.

For example, a simple FrameworkProbe that searches for the Foundation framework can be used as follows:

     import qbs.Probes
     Product {
         Depends { name: "cpp"; }
         Probes.FrameworkProbe {
             id: foundationProbe
             names: ["Foundation"]
         }
         cpp.frameworkPaths: foundationProbe.found ? [foundationProbe.path] : []
     }