-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Description
Job fails to run on GitHub hosted runner for macOS-latest
. It fails because the "SwiftPM Resolve dependencies" action timed out after 10 minutes while trying to resolve Swift package dependencies, this occurs on different packages each time. It does not apply to a specific package.
This occurs if the caching step is added before resolve or not. In the current workflow the caching step was removed.
Platforms affected
- Azure DevOps
- GitHub Actions - Standard Runners
- GitHub Actions - Larger Runners
Runner images affected
- Ubuntu 22.04
- Ubuntu 24.04
- macOS 13
- macOS 13 Arm64
- macOS 14
- macOS 14 Arm64
- macOS 15
- macOS 15 Arm64
- macOS 26 Arm64
- Windows Server 2019
- Windows Server 2022
- Windows Server 2025
Image version and build link
Image: macos-15-arm64
Version: 20250928.2397
Included Software: https://github.com/actions/runner-images/blob/macos-15-arm64/20250928.2397/images/macos/macos-15-ar…
Image Release: https://github.com/actions/runner-images/releases/tag/macos-15-arm64%2F20250928.2397
Is it regression?
No
Expected behavior
Xcode build should be able to resolve and the build should complete successfully. Tested on my local machine and it was working without issue.
Local machine:
Apple M1 Pro
16 GB
Tahoe 26.0.1
Actual behavior
The job failed because the "SwiftPM Resolve dependencies" action timed out after 10 minutes while trying to resolve Swift package dependencies, this occurs on different packages each time. It does not apply to a specific package.
This occurs if the caching step is added before resolve or not. In the current workflow the caching step was removed.
Repro steps
Workflow:
name: iOS Stage Build and Test
on:
workflow_dispatch: # Allow manual triggering of the workflow
pull_request:
branches:
- develop # Trigger on pull requests targeting the develop branch
- main # Trigger on pull requests targeting the main branch
jobs:
build:
runs-on: macos-latest # Use a macOS runner for iOS builds
steps:
- name: Checkout code
uses: actions/checkout@v4 # Action to checkout your repository code
- name: Select Xcode version
uses: swift-actions/setup-swift@v2 # If you need a specific Swift/Xcode version
- name: Configure Git credentials
run: |
git config --global url."https://${{ secrets.SWIFT_PACKAGE_TOKEN }}:x-oauth-basic@github.com/".insteadOf "[https://github.com/"](https://github.com/%22)
- name: SwiftPM Resolve dependencies
run: |
xcodebuild -resolvePackageDependencies \
-scheme "<Schema>" \
-project "<Project>.xcodeproj" \
-verbose
timeout-minutes: 10
- name: Build iOS project
run: |
xcodebuild clean build \
-scheme "<Schema>" \
-project "<Project>.xcodeproj" \
-destination 'platform=iOS Simulator,name=iPhone 17,OS=18.4'
timeout-minutes: 10