- 22 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
Build phase
- Mis à jour le 22 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
To integrate the Shielding Tool as a build phase, follow these steps:
To integrate a build post-action
Add the ShieldSDK XCFramework to the project. For more information, see Adding the framework.
In the Xcode project navigator, select the project into which you want to integrate the Shielding Tool.
In the Editor view, select the target into which you want to integrate the Shielding Tool.
Select the Build Phases tab.
To add a new build phase, select the + icon and New Run Script Phase.
Make sure this new Run Script phase comes after the Embed Frameworks phase. Phases can be reordered by dragging.
Expand the new build phase and de-select Based on dependency analysis. This forces the script to always run after a build.
In the text box Type a script..., add the script mentined above.
The finished integration should look like this:
Integrate Shielding Tool as build post-action
The Shielding Tool integration as a build phase does not support the User Script Sandboxing build setting (i.e., ENABLE_USER_SCRIPT_SANDBOXING). This is not a security feature, so it can safely be disabled if not needed for other purposes. For more information, see Demystify parallelization in Xcode builds.