iOS项目自动打包

用的是:https://www.jianshu.com/p/a61fe38c8c29

需要上传到pgy /TestFlight 

 在脚本中加几句就可以了

另外一种方式,fastlane打包

首要条件:

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`

然后把fastlane/文件夹拷贝到项目根目录下,修改fastlane文件里的一些参数即可(schem / pgy api key/ pgy user key)

然后就是执行想要build的ipa:

# Available Actions
## iOS
### ios ad_hoc
```
fastlane ios ad_hoc
```

### ios develop
```
fastlane ios develop
```

### ios app_store
```
fastlane ios app_store
```


----

相关链接:https://github.com/XLsn0w/fastlane