- Qbs Manual
- Qbs 1.21.0

# FrameworkProbe QML Type

Locates macOS frameworks outside the project. More...

Import Statement: | import QbsProbes .
Inherits: | PathProbe

- List of all members, including inherited members

## 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] : []
     }