* Go to http://gitlab.faifly.com/ and select your project.
* Go to http://gitlab.faifly.com/ and select your project.
* Click "Setup CI" button.
* Click "Setup CI" button.
* Copy-paste the following code:
* Copy-paste the following code:
```stages:
```
stages:
- diawi
- diawi
diawi_build:
diawi_build:
...
@@ -48,9 +50,43 @@ diawi_build:
...
@@ -48,9 +50,43 @@ diawi_build:
* Find `Code Signing Identity` Field and select `iOS Distribution` for your distribution configuration.
* Find `Code Signing Identity` Field and select `iOS Distribution` for your distribution configuration.
* Make sure `Development Team` is correctly selected for your distribution configuration.
* Make sure `Development Team` is correctly selected for your distribution configuration.
* Go to https://developer.apple.com/ and generate AdHoc provisioning profiles for your project and make sure you have a correct signing identity to use them.
* Go to https://developer.apple.com/ and generate AdHoc provisioning profiles for your project and make sure you have a correct signing identity to use them.
*
**3. Setup fastlane for the project.**
**5. Setup fastlane for the project.**
* Run`fastlane init` and follow the instructions.
* Run`fastlane init` and follow the instructions.
*
* Open `Fastfile` for editing and copy-paste the following code: