input | description | default |
---|---|---|
workspace | .xcworkspace file | |
scheme | Shared scheme | |
use_modern_build_system | Use modern build system | false |
additional_build_params | Additional xcodebuild params | |
additional_lint_params | Additional pod lib lint params |
|
test | Run test | true |
lint | Validate Pod | true |
on: push
jobs:
test:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Set XCode Version
run: sudo xcode-select -s /Applications/Xcode_11.app
- name: Install Dependencies
run: |
cd Example
pod install --repo-update
shell: bash
- uses: ty0x2333/cocoapods-action@master
with:
additional_build_params: -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.0'
additional_lint_params: --private
If your project is created using pod lib create
.
You can refer to this example: https://github.com/ty0x2333/GitHubActionPodDemo
This is the BUG of XCode 10.*
. It can be solved by specifying the ID of the simulator.
In the following example, we want to run on the iPhone X.
Find the device you want in the output log of the running action.
=== Devices ===
Known Devices:
...
iPhone SE (12.2) [85764D17-4C4C-4AE0-8284-F2D8D5D84A87] (Simulator)
iPhone X (12.2) [F6B65723-B90E-4C4D-9364-B627623066CC] (Simulator)
iPhone Xs (12.2) [1C7964B0-5871-4F05-8E6C-FD941B8CF9B4] (Simulator)
...
F6B65723-B90E-4C4D-9364-B627623066CC is the ID of the iPhone X simulator
Add -destination
param to additional_build_params
.
- uses: ty0x2333/cocoapods-action@master
with:
additional_build_params: -destination 'platform=iOS Simulator,id=F6B65723-B90E-4C4D-9364-B627623066CC'
- uses: ty0x2333/cocoapods-action@master
with:
additional_lint_params: --private