Xamarin
iOSDefender SDK can be used to protect your Xamarin apps by using the provided Bindings Library.
Prerequisites
- macOS
- Visual Studio for Mac
- A Xamarin iOS project
Instructions
Follow these instructions to include the iOSDefender SDK Bindings Library in your project:
Copy the
XamarinBindingsLibrary/iOSDefenderSDK/
folder from the iOSDefender SDK distribution into the solution folder of your Xamarin iOS project.With your Xamarin iOS project open in Visual Studio for Mac, add the
iOSDefenderSDK
project to your solution.Right click on your solution in the solution navigator and select
Add
>Existing Project...
.Select
iOSDefenderSDK/iOSDefenderSDK.csproj
.
In your Xamarin iOS project, add
iOSDefenderSDK
as a Reference.Right click the
References/
folder in your Xamarin iOS project and selectAdd Reference...
.Find the option
iOSDefenderSDK
and select it by clicking on the checkbox.Click "OK".
Make use of iOSDefender SDK in your Xamarin app by using the
iOSDefender
class from thePreEmptive
namespace. For example:PreEmptive.iOSDefender.IsJailbroken();
PreEmptive.iOSDefender.HasBeenJailbroken(new[] { PreEmptive.Config.SimulatorIsSafe });