Swift Tools Version is not Update in Bitrise

My project uses Swift tools version 6.0.0. It looks like Bitrise is configured to use 5.10.0. Where do I upgrade it?
Here is my code for reference GitHub - fuxlud/Modularized_iOS_App

And here is the log:
stack_image_version: 2-64-3
host_name: vm-osx-sonoma-15-g2-m1.4core-b91993da-ef0d-4610-9e73-3a56ca7bec26
node_name: las1-vfw01-gen2-mmg5-10-92-101-107
bitrise_cli_command: $ bitrise “run” “–config” “/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/bitrise-agent260615462/bitrise.yml” “–inventory” “/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/bitrise-agent260615462/bitrise.secrets.yml” “–json-params-base64” “eyJ3b3JrZmxvdyI6ImJ1aWxkIn0=” “–output-format” “json”
xcode_version: 15.4
den_agent_version: 2.36.1
Invocation started at 14:42:17
Bitrise CLI version: 2.19.0
Run modes:
CI mode: true
PR mode: false
Debug mode: false
Secret filtering mode: true
Secret Envs filtering mode: true
Using Step library in offline mode: false
No output timeout mode: false
Running workflow: build
Bitrise collects anonymous usage stats to improve the product, detect and respond to Step error conditions.
If you want to opt out, define the env var BITRISE_ANALYTICS_DISABLED=true
Switching to workflow: build
Step uses latest version, updating StepLib

±-----------------------------------------------------------------------------+

| (0) Activate SSH key (RSA private key) |
±–±--------------------------------------------------------------±---------+

±–±--------------------------------------------------------------±---------+
| ✓ | Activate SSH key (RSA private key) | 5.36 sec |
±–±--------------------------------------------------------------±---------+
▌
±-----------------------------------------------------------------------------+

| (1) Git Clone Repository |
±–±--------------------------------------------------------------±---------+

±–±--------------------------------------------------------------±---------+
| ✓ | Git Clone Repository | 4.11 sec |
±–±--------------------------------------------------------------±---------+
▌
±-----------------------------------------------------------------------------+

| (2) Restore SPM Cache |
±–±--------------------------------------------------------------±---------+

±–±--------------------------------------------------------------±---------+
| ✓ | Restore SPM Cache | 1.93 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1 (1.1.1) → 2.1.0 |
| Release notes are available below |
| Releases · bitrise-steplib/bitrise-step-restore-spm-cache · GitHub |
±–±--------------------------------------------------------------±---------+
▌
±-----------------------------------------------------------------------------+

| (3) Xcode Build for testing for iOS |
±-----------------------------------------------------------------------------+
| id: xcode-build-for-test |
| version: 3.0.0 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2024-08-04T14:42:28Z |
±-----------------------------------------------------------------------------+
| |
Input:

  • project_path: ApplicationName.xcodeproj
  • scheme: MainApplication
  • configuration: Debug
  • destination: platform=iOS Simulator,name=iPhone 8 Plus,OS=latest
  • test_plan:
  • xcconfig_content: COMPILER_INDEX_STORE_ENABLE = NO
  • xcodebuild_options:
  • log_formatter: xcpretty
  • automatic_code_signing: off
  • register_test_devices: false
  • test_device_list_path:
  • min_profile_validity: 0
  • apple_team_id:
  • certificate_url_list:
  • passphrase_list:
  • keychain_path: /Users/[REDACTED]/Library/Keychains/login.keychain
  • keychain_password: *****
  • BITRISE_BUILD_URL: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation
  • BITRISE_BUILD_API_TOKEN: *****
  • output_dir: /Users/[REDACTED]/deploy
  • cache_level: none
  • api_key_path:
  • api_key_id:
  • api_key_issuer_id:
  • verbose_log: false
    Xcode version: Xcode 15.4 (Build version 15F31d)
    Checking if output tool (xcpretty) is installed
  • xcpretty version: 0.3.0
    Automatic code signing is disabled, skipped downloading code sign assets
    Running xcodebuild
    $ set -o pipefail && xcodebuild “build-for-testing” “-project” “/Users/[REDACTED]/git/ApplicationName.xcodeproj” “-scheme” “MainApplication” “-configuration” “Debug” “-destination” “platform=iOS Simulator,name=iPhone 8 Plus,OS=latest” “-xcconfig” “/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/4252757528/temp.xcconfig” “SYMROOT=/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/test_bundle3469223910” | xcpretty
    Build failed, swift packages cache is in an invalid state: exit status 74
    $ set -o pipefail && xcodebuild “build-for-testing” “-project” “/Users/[REDACTED]/git/ApplicationName.xcodeproj” “-scheme” “MainApplication” “-configuration” “Debug” “-destination” “platform=iOS Simulator,name=iPhone 8 Plus,OS=latest” “-xcconfig” “/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/4252757528/temp.xcconfig” “SYMROOT=/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/test_bundle3469223910” | xcpretty
    Last lines of the build log:
    /Applications/Xcode-15.4.0.app/Contents/Developer/usr/bin/xcodebuild build-for-testing -project /Users/[REDACTED]/git/ApplicationName.xcodeproj -scheme MainApplication -configuration Debug -destination “platform=iOS Simulator,name=iPhone 8 Plus,OS=latest” -xcconfig /var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/4252757528/temp.xcconfig SYMROOT=/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/test_bundle3469223910
    User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES
    Build settings from command line:
    SYMROOT = /var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/test_bundle3469223910
    Build settings from configuration file ‘/var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/4252757528/temp.xcconfig’:
    COMPILER_INDEX_STORE_ENABLE = NO
    Resolve Package Graph
    package ‘submodules’ is using Swift tools version 6.0.0 but the installed version is 5.10.0
    Resolved source packages:
    Submodules: /Users/[REDACTED]/git/Submodules
    2024-08-04 14:42:37.496 xcodebuild[5910:24343] Writing error result bundle to /var/folders/7l/rszmbrmd6tv4pg52z6ql_5rc0000gn/T/ResultBundle_2024-04-08_14-42-0037.xcresult
    xcodebuild: error: Could not resolve package dependencies:
    package ‘submodules’ is using Swift tools version 6.0.0 but the installed version is 5.10.0
    If you can’t find the reason of the error in the log, please check the raw-xcodebuild-output.log.
    The log file is stored in the output directory, and its full path
    is available in the $BITRISE_XCODE_RAW_RESULT_TEXT_PATH environment variable.
    Use Deploy to Bitrise.io step (after this step),
    to attach the file to your build as an artifact!
    Run: exit status 74
    Export outputs
    The xcodebuild command log file path is available in BITRISE_XCODE_RAW_RESULT_TEXT_PATH env: /Users/[REDACTED]/deploy/raw-xcodebuild-output.log
    Run: exit status 74
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | Xcode Build for testing for iOS (Failed) | 10.41 sec |
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: https://github.com/bitrise-steplib/steps-xcode-build-for-t
 |
    | Source: GitHub - bitrise-steplib/steps-xcode-build-for-test |
    ±–±--------------------------------------------------------------±---------+
    ▌
    ±-----------------------------------------------------------------------------+

| (4) Save SPM Cache |
±–±--------------------------------------------------------------±---------+

±–±--------------------------------------------------------------±---------+
| - | Save SPM Cache (Skipped) | 0.72 sec |
±–±--------------------------------------------------------------±---------+
▌
±-----------------------------------------------------------------------------+

| (5) Deploy to Bitrise.io - Build Artifacts, Test Reports, and Pipeline in
 |
±–±--------------------------------------------------------------±---------+

±–±--------------------------------------------------------------±---------+
| ✓ | Deploy to Bitrise.io - Build Artifacts, Test Reports, and 
 | 4.88 sec |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary: build |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | Activate SSH key (RSA private key) | 5.36 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | Git Clone Repository | 4.11 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | Restore SPM Cache | 1.93 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1 (1.1.1) → 2.1.0 |
| |
| Release notes are available below |
| Releases · bitrise-steplib/bitrise-step-restore-spm-cache · GitHub |
±–±--------------------------------------------------------------±---------+
| x | Xcode Build for testing for iOS (Failed) | 10.42 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: 
thub.com/bitrise-steplib/steps-xcode-build-for-test/issues |
| Source: GitHub - bitrise-steplib/steps-xcode-build-for-test |
±–±--------------------------------------------------------------±---------+
| - | Save SPM Cache (Skipped) | 0.72 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | Deploy to Bitrise.io - Build Artifacts, Test Reports, and P
| 4.88 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 27.42 sec |
±-----------------------------------------------------------------------------+
Bitrise build failed (exit code: 1)
ExitCode: 1
RunError: exit status 1
IsTimeout: false
IsAborted: false

Hi @fuxlud,

If you need Swift 6.0 version, we suggest trying out the Xcode 16 edge stack:

Swift tool versions comes bundled with the Xcode. Xcode 15.4 comes with 5.10.0 version, so the Bitrise Xcode 15.4 stack is also provided with this version:

Let us know if you have any other questions!
Balazs

Hi @BalazsIlsinszki,
Could you please direct me to a tutorial of how do I update it? I an new to this.

Sure, this is the guide on how to change stacks for your workflow.