Skip to content

KMP plugin 0.11.0 makes iOS build fail on GitHub Action workflow #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
franmontiel opened this issue Mar 19, 2025 · 3 comments
Open

Comments

@franmontiel
Copy link

franmontiel commented Mar 19, 2025

Platform

Apple

Installed

Swift Package Manager

Version

0.11.0 plugin

Steps to Reproduce

This version allows me to build locally the iOS library without issues but makes the build fail on GitHub Actions with the following error:

Plugin 'io.sentry.kotlin.multiplatform.gradle': failed to compute value with custom source 'io.sentry.kotlin.multiplatform.gradle.DerivedDataPathValueSource' with org.gradle.process.internal.ExecException: Process 'command 'xcodebuild'' finished with non-zero exit value 74

As a sample the "Build and Test" step of the following workflow is failing (it also fails if using ./gradlew iosSimulatorArm64TestBinaries or /gradlew linkDebugFrameworkIosSimulator)

name: Build All Modules
on:
  pull_request:
    branches:
      - "**"

# Avoids running the same workflow concurrently for the same branch
concurrency:
  # Here the group is defined by the branch name
  group: ${{ github.head_ref || github.ref_name }}
  cancel-in-progress: true

jobs:
  build-ios:
    name: Build & test iOS

    runs-on: macos-latest

    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-java@v4
        with:
          distribution: "adopt"
          java-version: "17"
          architecture: "aarch64"

      - name: Setup Gradle
        uses: gradle/actions/setup-gradle@v4

      - name: Build and Test
        run: ./gradlew iosSimulatorArm64Test

env:
  GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
  ORG_GRADLE_PROJECT_CORIS_USERNAME: ${{ secrets.CORIS_USERNAME }}
  ORG_GRADLE_PROJECT_CORIS_PASSWORD: ${{ secrets.CORIS_PASSWORD }}

Expected Result

The library builds correctly in the GitHub Actions environment (as it was doing until the usage of the Sentry plugin).

Actual Result

The library does not compile

Plugin 'io.sentry.kotlin.multiplatform.gradle': failed to compute value with custom source 'io.sentry.kotlin.multiplatform.gradle.DerivedDataPathValueSource' with org.gradle.process.internal.ExecException: Process 'command 'xcodebuild'' finished with non-zero exit value 74

Here the full stacktrace -> sentry-github-actions-stacktrace.txt

@franmontiel franmontiel added Platform: KMP Type: Bug Something isn't working labels Mar 19, 2025
@github-project-automation github-project-automation bot moved this to Needs Discussion in Mobile SDKs Mar 19, 2025
@franmontiel franmontiel changed the title KMP plugin makes iOS build fail KMP plugin makes iOS build fail on GitHub Action workflow Mar 19, 2025
@franmontiel franmontiel changed the title KMP plugin makes iOS build fail on GitHub Action workflow KMP plugin 0,1.0 makes iOS build fail on GitHub Action workflow Mar 19, 2025
@franmontiel franmontiel changed the title KMP plugin 0,1.0 makes iOS build fail on GitHub Action workflow KMP plugin 0.11.0 makes iOS build fail on GitHub Action workflow Mar 19, 2025
@romtsn
Copy link
Member

romtsn commented Mar 19, 2025

@franmontiel thanks for opening the issue! Could you add --stacktrace to your ./gradlew commands and paste the full gradle output here? Thanks!

@franmontiel
Copy link
Author

Hi @romtsn, I've just added the full stacktrace at the end of the issue description

@buenaflor
Copy link
Contributor

Hey thanks, we will have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

4 participants