/Demo-Xcode-github

Primary LanguageSwiftMIT LicenseMIT

Demo-Xcode-github

Build Status Language License

环境搭建

1.安装 Homebrew

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

2.安装 oh-my-zsh

$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ brew install zsh-git-prompt

4.安装 rbenv - ruby版本管理工具

$ brew install rbenv ruby-build rbenv-vars

5.安装最新版Ruby

$ rbenv install --list
$ rbenv install 3.1.2 
$ rbenv local 3.1.2

After that, run the following commands to install all required components and set up the development environment:

$ ./scripts/setup.sh 
$ open Demo.xcworkspace 

Automation

If you'd like to run the automation steps on your local machine, make sure your create a file called local.keys and put all the keys in as below:

CI_BUILD_NUMBER=10 # Change it every time when running the build locally
APP_STORE_CONNECT_API_CONTENT=<App Store Connect API for an App Manager>
FIREBASE_API_TOKEN=<Firebase API token for App Distribution>
GITHUB_API_TOKEN=<GitHub API token for accessing the private repo for certificates and provisioning profiles>
MATCH_PASSWORD=<Password for certificates for App signing on GitHub private repo>

And run $ source local.keys After that, you can follow the steps in .github-ci.yml to run the automations locally