This guide will walk you through the steps to incorporate the Cloneable-iOS-SDK into your Xcode Swift app using Swift Package Manager (SPM).
Before you begin, ensure you have the following prerequisites:
- Xcode (11.0 or later)
- An existing Swift app project
- Internet connection
Follow these steps to add the Cloneable-iOS-SDK package to your Xcode project:
-
Open your Xcode project.
-
Click on your project name in the Project Navigator to select it.
-
In the main menu, go to
File
>Swift Packages
>Add Package Dependency...
-
In the "Choose Package Repository" dialog, paste the Cloneable-iOS-SDK repository URL:
https://github.com/Cloneable-Inc/Cloneable-iOS-SDK
. -
Click the
Next
button. -
In the "Rules" dialog, leave the default settings selected, which will use the latest version of the package.
-
Click the
Next
button. -
In the "Add to Target" dialog, make sure your app's target is selected.
-
Click the
Finish
button. -
Xcode will now fetch the Cloneable-iOS-SDK package and integrate it into your project.
To start using the Cloneable-iOS-SDK in your Swift code, you need to import the package in your source files. Here's how:
import CloneablePlatformiOS