GithubHelp home page GithubHelp logo

paulz / cocoapods-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ty0x2333/cocoapods-action

0.0 1.0 0.0 712 KB

A GitHub Action for validating Pods and testing iOS/macOS project

JavaScript 100.00%

cocoapods-action's Introduction

CocoaPods Action

GitHub release (latest by date)

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

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

=== 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.

- uses: ty0x2333/cocoapods-action@master
  with:
    additional_build_params: -destination 'platform=iOS Simulator,id=F6B65723-B90E-4C4D-9364-B627623066CC'

For Private Pod

- uses: ty0x2333/cocoapods-action@master
  with:
    additional_lint_params: --private

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.