How To Add Package - themobilitybox/mobilitybox-ticketing-ios GitHub Wiki
Swift Package Manager
The Mobilitybox Ticketing Package for iOS can be consumed via Swift Package Manager.
- Go to the project file and select in the XCode menu File > Add Packages...
- Insert https://github.com/themobilitybox/mobilitybox-ticketing-ios.git as the URL, press Enter to pull in the package.
- Select the Package Version or Dependency Rule which you want to add and click Add Package
- At this point, everything should be fetched and loaded up. Select the "Mobilitybox" package and then press Add Package.
- Now the Mobilitybox package can be imported in your code.
import Mobilitybox
CocoaPods Dependency Manager
The Mobilitybox Ticketing Package for iOS can be consumed as Pod via CocoaPods Dependency Manager.
From scratch
-
Install CocoaPods (checkout the CocoaPods Website for a detailed description)
sudo gem install cocoapods
-
Initialize the dependencies file (Podfile) for your Project
pod init
-
Add the Mobilitybox Ticketing Package dependency in the targets list
target 'YourAppName' do use_frameworks! pod 'mobilitybox-ios-sdk', '~> 3.0' end
-
Install Dependencies
pod install
-
Make sure to always open the Xcode workspace instead of the project file when building your project:
open YourAppName.xcworkspace
-
Now the Mobilitybox package can be imported in your code.
import mobilitybox_ios_sdk
When already using CocoaPods dependencies
-
Add the Mobilitybox Ticketing Package dependency in the targets list
target 'YourAppName' do use_frameworks! pod 'mobilitybox-ios-sdk', '~> 3.0' end
-
Install Dependencies
pod install
-
Now the Mobilitybox package can be imported in your code.
import mobilitybox_ios_sdk