Installation
Our Flagship SDK is available for distribution through CocoaPods, Swift Package Manager
Cocoapods
-
Open Terminal and browse to the directory that contains your project then, enter the following command:
pod init
-
Open your Podfile and add the following line to the Podfile
target 'Your App' do
use_frameworks!
pod 'FlagShip'
end
-
Run
pod install
from your Xcode project's base directory -
Make sure you always open the Xcode workspace and not the project file when building your project
Swift Package Manager (SPM)
You can search for Flagship package on GitHub.
Add your GitHub or GitHub Enterprise account in Xcode’s preferences, and a package repository appear as you type.
For more information about Swift Package Manager, refer to Apple documentation.
Carthage
-
Install Carthage
-
Create a Cartfile in the same directory where your .xcodeproj or .xcworkspace is.
-
Add this line to the Cartfile
github "flagship-io/flagship-ios" ~> 4.0.0
-
Run
carthage update --use-xcframeworks
-
A Cartfile.resolved file and a Carthage directory will appear in the same directory where your .xcodeproj or .xcworkspace is.
-
Drag the built Flagship.xcframework bundles from Carthage/Build into the "Frameworks, Libraries, and Embedded Content" section of your application’s Xcode project.
For More information refer to Carthage
Updated 5 months ago