# Installation

## Swift Package Manager

With Xcode 11 you can start using [Swift Package Manager](https://swift.org/package-manager/) to add **MBurgerSwift** to your project. Follow those simple steps:

* In Xcode go to File > Swift Packages > Add Package Dependency.
* Enter `https://github.com/Mumble-SRL/MBurgerSwift.git` in the "Choose Package Repository" dialog and press Next.
* Specify the version using rule "Up to Next Major" with "1.0.7" as its earliest version and press Next.
* Xcode will try to resolving the version, after this, you can choose the `MBurgerSwift` library and add it to your app target.

## CocoaPods

[CocoaPods](https://cocoapods.org/) is a dependency manager for iOS, which automates and simplifies the process of using 3rd-party libraries in your projects.&#x20;

You can install CocoaPods with the following command:

```java
$ gem install cocoapods
```

To integrate the MBurger into your Xcode project using CocoaPods, specify it in your Podfile:

```java
platform :ios, ‘11.0’

target ‘TargetName’ do
    pod ‘MBurgerSwift’
end
```

If you use Swift, remember to add **`use_frameworks!`** before the pod declaration.

Then, run the following command:

```
$ pod install
```

CocoaPods is the preferred method when installing the library.

## Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate MBurgerSwift into your Xcode project using Carthage, specify it in your Cartfile:

```
github "Mumble-SRL/MBurgerSwift"
```

## Manual installation

To install the library manually drag and drop the folder `MBurgerSwift` to your project structure in XCode.

{% hint style="warning" %}
Note that **`MBurgerSwift`** has **`MBNetworkingSwift (1.0.4)`** as dependency, so you have to install also this library.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mburger.cloud/ios-docs/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
