Bitrise Build Issue Report template
Description of the issue
Error using Xcode Archive & Export for iOS step for a framework target. Building this target works using a script step using
xcodebuild archive \
-scheme "${SCHEME_NAME}_iOS" \
-destination "generic/platform=iOS" \
-archivePath ".build/ios.xcarchive" \
-derivedDataPath ".build/iosdd" \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
SKIP_INSTALL=NO \
ENABLE_BITCODE=NO \
SWIFT_VERSION=5.8
I want to move this to using the XCode archive & release step to take advantage of the built in code signing.
Environment:
Where did the issue happen?
Happens both on bitrise CLI and the hosted builders
Which build Step causes the issue and which version of the step?
XCode Archive & Release 5.1.2
Reproducibility
- Does a âRebuildâ help? (You can trigger a rebuild from the Buildâs page, by clicking the âRebuildâ button in the top right corner of a finished build) :NO
- Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : NO - Does the issue happen sporadically, or every time? : Every time
- Does upgrading the build Step to the latest version help? : NO
- When did the issue start? :
2024-07-18
Local reproduction
Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (âTesting with a full clean git cloneâ) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
Yes.
Local reproduction: Linux / Android (docker based) stack builds
Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp
directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Running your build locally in Docker - Bitrise Docs .
n/a.
Build log
Please copy paste the buildâs bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you canât share the url / log here then send the url or full log through a private channel (e.g. email - Contact us ), with a link to the related Discuss issue.
Build is Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation . Access has been shared with support.
Inputs:
- distribution_method: development
- upload_bitcode: true
- compile_bitcode: true
- icloud_container_environment: <unset>
- export_development_team: <unset>
- export_options_plist_content: <unset>
- log_formatter: xcpretty
- project_path: CyclopsSensorPackage.xcodeproj
- scheme: CyclopsSensorPackage_iOS
- configuration: <unset>
- output_dir: /Users/[REDACTED]/deploy
- perform_clean_action: false
- xcodebuild_options: <unset>
- xcconfig_content: COMPILER_INDEX_STORE_ENABLE = NO
- export_all_dsyms: true
- artifact_name: <unset>
- verbose_log: false
- cache_level: swift_packages
- automatic_code_signing: off
- certificate_url_list: <unset>
- passphrase_list: <unset>
- keychain_path: /Users/[REDACTED]/Library/Keychains/login.keychain
- keychain_password: *****
- register_test_devices: false
- test_device_list_path: <unset>
- min_profile_validity: 0
- fallback_provisioning_profile_url_list: <unset>
- api_key_path: <unset>
- api_key_id: <unset>
- api_key_issuer_id: <unset>
- BITRISE_BUILD_URL: https://app.bitrise.io/build/9bf87f77-565d-420e-99a1-99b72fc43ae8
- BITRISE_BUILD_API_TOKEN: *****
Xcode version:
Xcode 15.4 (Build version 15F31d)
Checking if log formatter (xcpretty) is installed
- xcprettyVersion: 0.3.0
Running resolve Swift package dependencies
[13:49:54] Resolving package dependencies...
[13:49:54] $ xcodebuild "-project" "/Users/[REDACTED]/git/CyclopsSensorPackage.xcodeproj" "-scheme" "CyclopsSensorPackage_iOS" "-resolvePackageDependencies"
Command line invocation:
/Applications/Xcode-15.4.0.app/Contents/Developer/usr/bin/xcodebuild -project /Users/[REDACTED]/git/CyclopsSensorPackage.xcodeproj -scheme CyclopsSensorPackage_iOS -resolvePackageDependencies
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Fetching from https://github.com/apple/swift-log.git
Fetching from https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git
Creating working copy of package âswift-logâ
Checking out 1.5.4 of package âswift-logâ
Creating working copy of package âIOS-CoreBluetooth-Mockâ
Checking out 0.18.0 of package âIOS-CoreBluetooth-Mockâ
Resolved source packages:
CyclopsSensorPackage: /Users/[REDACTED]/git
CoreBluetoothMock: https://github.com/NordicSemiconductor/IOS-CoreBluetooth-Mock.git @ 0.18.0
swift-log: https://github.com/apple/swift-log.git @ 1.5.4
resolved source packages: CyclopsSensorPackage, CoreBluetoothMock, swift-log
[13:50:03] Resolved package dependencies.
Looking for artifact name as field is empty
[13:50:03] Reading build settings...
[13:50:03] $ xcodebuild "-project" "/Users/[REDACTED]/git/CyclopsSensorPackage.xcodeproj" "-scheme" "CyclopsSensorPackage_iOS" "-showBuildSettings"
[13:50:04] Read target settings.
Automatic code signing is disabled, skipped downloading code sign assets
[13:50:04] Opening xcode project at path: /Users/[REDACTED]/git/CyclopsSensorPackage.xcodeproj for scheme: CyclopsSensorPackage_iOS
Failed to execute Step main logic:
failed to open project: /Users/[REDACTED]/git/CyclopsSensorPackage.xcodeproj: archivable entry not found