Merge pull request #267 from LinusU/patch-1

Add FAQ page with code signing help
This commit is contained in:
Yonas Kolb 2018-03-26 23:55:49 +11:00 committed by GitHub
commit 40b934ee6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

48
Docs/FAQ.md Normal file
View File

@ -0,0 +1,48 @@
# Frequently asked questions
- [How do I setup code signing](#how-do-i-setup-code-signing)
## How do I setup code signing
For code signing to work, you need to tell Xcode wich development team to use. This can be done in one of several way:
### By setting the `DEVELOPMENT_TEAM` in the target's settings
Simply specify your development team id in your `project.yml` file, like so:
```yml
# ...
targets:
MyTarget:
# ...
settings:
DEVELOPMENT_TEAM: XXXXXXXXX
```
### By passing `DEVELOPMENT_TEAM` as an env variable
You can also pass `DEVELOPMENT_TEAM` as an environemntal variable to `xcodebuild`, like so:
```sh
DEVELOPMENT_TEAM=XXXXXXXXX xcodebuild ...
```
### By using an `.xcconfig` file:
The development team can also be read from `.xcconfig` files, this allows you to specify different teams for different build configurations. Start by creating an `.xcconfig` file with the value:
```text
DEVELOPMENT_TEAM = XXXXXXXXX
```
Then reference the `.xcconfig` file in your `project.yml` specification:
```yml
# ...
targets:
MyTarget:
# ...
configFiles:
Debug: config_files/debug.xcconfig
Release: config_files/release.xcconfig
```