Skip Navigation

Link for FIPS in
Swift

If your project or app includes at least one
Swift
language source file, make the following project changes. Make sure that you set up linking for FIPS in Objective-C or C++. For more information, see Link for FIPS in Objective-C or C++. If you are not including source code in Objective-C, you must
replace
the contents of the
xcconfig
file, not add to it.
  1. In the project's default
    xcconfig
    file, add the following line. If you are not using an xcconfig file, add one and configure your build options to use it.
    FIPS_PACKAGE=$(CURRENT_ARCH).sdk LDPLUSPLUS=~/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld LD=~/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
  2. Ensure that the deployment target is set to the required version (see Software requirements).
  3. In the project, go to
    Target
    >
    > Build Settings
    >
    Linking
    >
    Other Linker Flags
    and add the following:
    -B ${LDUTILDIR}