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