With Xcode 11 you can start using Swift Package Manager to add MBMessagesSwift to your project. Follow those simple steps:
In Xcode go to File > Swift Packages > Add Package Dependency.
https://github.com/Mumble-SRL/MBMessagesSwift.git in the "Choose Package Repository" dialog and press Next.
Specify the version using rule "Up to Next Major" with "0.1.1" as its earliest version and press Next.
Xcode will try to resolving the version, after this, you can choose the
MBMessagesSwift library and add it to your app target.
CocoaPods is a dependency manager for iOS, which automates and simplifies the process of using 3rd-party libraries in your projects. You can install CocoaPods with the following command:
$ gem install cocoapods
To integrate the MBMessagesSwift into your Xcode project using CocoaPods, specify it in your Podfile:
platform :ios, '12.0'target 'TargetName' dopod 'MBMessagesSwift'end
If you use Swift rememember to add
use_frameworks! before the pod declaration.
Then, run the following command:
$ pod install
CocoaPods is the preferred methot to install the library.
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate MBMessagesSwift into your Xcode project using Carthage, specify it in your Cartfile:
To install the library manually drag and drop the folder
MBMessages to your project structure in XCode.
MBurgerSwift (1.0.8) and
MPushSwift (0.2.13) as dependencies, so you have to install also those libraries.