Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ty0x2333/cocoapods-action
A GitHub Action for validating Pods and testing iOS/macOS project
https://github.com/ty0x2333/cocoapods-action
ci cocoapods cocoapods-action github-actions ios iphone simulator
Last synced: 2 months ago
JSON representation
A GitHub Action for validating Pods and testing iOS/macOS project
- Host: GitHub
- URL: https://github.com/ty0x2333/cocoapods-action
- Owner: ty0x2333
- Created: 2019-09-18T18:05:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-18T19:15:45.000Z (over 2 years ago)
- Last Synced: 2024-10-05T06:37:06.430Z (4 months ago)
- Topics: ci, cocoapods, cocoapods-action, github-actions, ios, iphone, simulator
- Language: JavaScript
- Homepage:
- Size: 610 KB
- Stars: 19
- Watchers: 2
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CocoaPods Action
===
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/ty0x2333/cocoapods-action)](https://github.com/ty0x2333/cocoapods-action/releases)### Inputs
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### Example
#### Simple
```yml
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
```#### pod-template Project
If your project is created using `pod lib create`.
You can refer to this example: https://github.com/ty0x2333/GitHubActionPodDemo
### F&Q
#### IDETestOperationsObserverDebug: (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) Finished requesting crash reports. Continuing with testing.https://stackoverflow.com/questions/56326847/xcodebuild-skip-finished-requesting-crash-reports-continuing-with-testing
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.
##### Step.1
Find the device you want in the output log of the running action.
![Simulator ID](resource/simulator-id.jpg)
```
=== 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
##### Step.2
Add `-destination` param to `additional_build_params`.
```yml
- uses: ty0x2333/cocoapods-action@master
with:
additional_build_params: -destination 'platform=iOS Simulator,id=F6B65723-B90E-4C4D-9364-B627623066CC'
```#### For Private Pod
```yml
- uses: ty0x2333/cocoapods-action@master
with:
additional_lint_params: --private
```