# Integrate iOS framework

To integrate the iOS framework into your app:

{% stepper %}
{% step %}
Install the latest version of [Carthage](https://github.com/Carthage/Carthage#installing-carthage).
{% endstep %}

{% step %}
Add the iOS framework line to your `cartfile`:

```javascript
github "Clearent/iOS-framework"
```

{% endstep %}

{% step %}
Run the following command in the root folder of your project:

```javascript
Carthage update
```

It imports a copy of the iOS framework and builds in the local folder Carthage/Build path.
{% endstep %}

{% step %}
Move the iOS framework from the Carthage/Build folder to the Embedded Binaries section in the **General settings** tab of your iOS app’s target.
{% endstep %}

{% step %}
Click the **+** icon.
{% endstep %}

{% step %}
Select **New Copy Files Phase** to copy debug symbols for debugging and crash reporting on iOS app.
{% endstep %}

{% step %}
Click the **Destination** menu.
{% endstep %}

{% step %}
Select **Products Directory** from the dropdown options.
{% endstep %}

{% step %}
Select the corresponding dSYM file from the iOS framework folder and upload the dSYM file.
{% endstep %}
{% endstepper %}
