MaestroKit Setup
This guide will walk you through the process of integrating Maestro into your iOS application.
Prerequisites
Before you begin, please make sure you have the following:
- Xcode installed on your development machine.
- An iOS app project set up in Xcode.
Installing
To add MaestroKit SDK to your iOS project, choose one of the following methods based on your preferred dependency management approach:
Manual Adding the Framework
To add the MaestroKit framework into your project:
- Open your Xcode project.
- Navigate to your project settings by clicking on it in the project navigator.
- Make sure that your target is selected and General tab is open
- Click the plus sign and add the framework
- Select “Embed & Sign” for your newly added XCFramework
Swift Package Manager
To add MaestroKit using Swift Package Manager:
- Open your Xcode project.
- Go to File > Swift Packages > Add Package Dependency.
- When prompted with Choose Package Repository Enter the URL for the MaestroKit SDK package:
https://github.com/lessthan3/MaestroKit.swift.git
and Click Next. - Choose the desired version rule, or select a specific branch, tag, or commit. Then Click Next
- Xcode will resolve the package and present you with options to add the package to your targets.
- Make sure your main target is selected and click Finish.
The MaestroKit SDK package will be added to your project.
CocoaPods
To add MaestroKit using CocoaPods:
- Open your Xcode project.
- Navigate to your project's directory in the terminal.
- Create a new Podfile with
touch Podfile
in the root folder if you don't have one already. - Open the Podfile using a text editor and add the following line:
pod 'MaestroKit'
- Save the file and run the following command in your terminal:
pod install
- Wait for CocoaPods to install MaestroSDK in your project and set up the dependencies.
The MaestroKit SDK package will be added to your project.