điOS
đĻ Add the dependency
From GitHub, Copy
Talsec
folder into your Application folder.Drag & drop the Talsec folder to your
.xcworkspace
.Add TalsecRuntime framework to Target > Build Phases > Link Binary With Libraries.
In the General > Frameworks, Libraries, and Embedded Content choose Embed & Sign.
Note: In case you are using Carthage, the zipped version of the framework is included in the GitHub Releases.
âī¸ Setup the Configuration for your App
To ensure freeRASP functions correctly, you need to provide the necessary configuration. All required values must be filled in for the plugin to operate properly. Use the following template to configure the plugin. Detailed descriptions of the configuration options are provided on the API page.
In the AppDelegate
import TalsecRuntime
and add the following code (e.g., in the didFinishLaunchingWithOptions
method.:
It does not have to be AppDelegate, it can be anywhere. However, the recommended approach is to start the SDK as soon as possible.
đˇ Handle detected threats
You can handle the detected events using handlers. For example, you can log the event, show a window to the user or kill the application. See the Threat detection to learn more details about the performed checks and their importance for app security.
Anywhere in your project (e.g. in AppDelegate), add the following code as an extension:
AppDelegate.swiftUse the code above for handling these types of events:
TalsecRuntime
đĄī¸ Start freeRASP
Invoke the following method right after setting up the TalsecConfig
in previous steps.
For the version youâre integrating, you can find the specific dSYMs for debugging in Releases.
Last updated