iOS SDK
Installation
Dependency Managers
8 min
installation with dependency managers forter sdk is distributed both on swift package manager https //swift org/package manager/ and cocoapods https //cocoapods org/ the deliverables are the same for both integration methods swift package manager if you have used cocoapods as the integration method previously, please delete pod 'fortersdk' from the podfile and run the following commands xcode in the project navigator , select the project and then the package dependencies tab and click the + button in the search bar, enter https //bitbucket org/forter mobile/forter ios sdk git set the dependency rule to up to next major version and click the "add package" button package swift to add the forter sdk to your project using package swift , include it in your package dependencies dependencies \[ package(url "https //bitbucket org/forter mobile/forter ios sdk git", uptonextmajor(from "3 0 4")) ] cocoapods in order to integrate forter sdk to your project using cocoapods, please take the following steps make sure your your podfile includes the use frameworks! flag add the fortersdk pod to the podfile next to the rest of the frameworks you're using pod 'fortersdk', \ git => 'https //bitbucket org/forter mobile/forter ios sdk git' run pod install version updates swift package manager to update the forter sdk using swift package manager in xcode, go to file > packages > update to latest package versions xcode will automatically update to the latest version that matches your version rule cocoapods in your podfile , ensure you're not pinned to a specific version pod 'fortersdk', \ git => 'https //bitbucket org/forter mobile/forter ios sdk git', ' > 3 0 4' # use this for the latest minor version \# or pod 'fortersdk', \ git => 'https //bitbucket org/forter mobile/forter ios sdk git' # use this for the latest version overall run pod update fortersdk