Xcode archive does not work with standalone watchos app

Bitrise Build Issue Report template

Description of the issue

xcode archive does not work with standalone watchos app

Environment:

Where did the issue happen?

Happens on Bitrise.io
Build Step XCode Archive

Exporting outputs…
failed to manage code signing: failed to read project platform: not supported platform. Platform (PLATFORM_DISPLAY_NAME) = watchOS, supported: iOS, tvOS

Is watchOS really not supported or is the error elsewhere?

Which build Step causes the issue and which version of the step?

Xcode Archive & Export for iOS v4.2.6

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 and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings 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? : NEVER WORKED

Build log

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

| (7) xcode-archive@4.2 |
±-----------------------------------------------------------------------------+
| id: xcode-archive |
| version: 4.2.6 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-24T19:12:58Z |
±-----------------------------------------------------------------------------+
| |
INFO[19:12:58] * [OK] Step dependency (xcode) installed, available.
Inputs:

  • distribution_method: app-store
  • upload_bitcode: true
  • compile_bitcode: true
  • icloud_container_environment:
  • export_development_team:
  • export_options_plist_content:
  • log_formatter: xcpretty
  • project_path: Body Measurements.xcodeproj
  • scheme: Body Measurements WatchKit App
  • configuration:
  • output_dir: /Users/[REDACTED]/deploy
  • perform_clean_action: false
  • xcodebuild_options:
  • xcconfig_content: COMPILER_INDEX_STORE_ENABLE = NO
  • export_all_dsyms: true
  • artifact_name:
  • verbose_log: false
  • cache_level: swift_packages
  • automatic_code_signing: api-key
  • certificate_url_list: [REDACTED]
  • passphrase_list: *****
  • keychain_path: /Users/[REDACTED]/Library/Keychains/login.keychain
  • keychain_password: *****
  • register_test_devices: false
  • min_profile_validity: 14
  • BITRISE_BUILD_URL: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation
  • BITRISE_BUILD_API_TOKEN: *****
    Xcode version:
    Xcode 13.1 (Build version 13A1030d)
    Fetching Apple Service connection
    Bitrise Apple Developer Connection with API key found
    Using Apple Service connection with API key.
    Checking if log formatter (xcpretty) is installed
  • xcprettyVersion: 0.3.0
    Preparing code signing assets (certificates, profiles) before Archive action
    Code signing asset management by Bitrise
    Reason: Specifying the minimum validity period of the Provisioning Profile is not supported by xcodebuild.
    Analyzing project
    Configuration: Release
    Exporting outputs…
    failed to manage code signing: failed to read project platform: not supported platform. Platform (PLATFORM_DISPLAY_NAME) = watchOS, supported: iOS, tvOS
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | xcode-archive@4.2 (exit code: 1) | 15.62 sec|
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: Issues · bitrise-steplib/steps-xcode-archive · GitHub |
    | Source: GitHub - bitrise-steplib/steps-xcode-archive: Xcode Archive for iOS step |
    ±–±--------------------------------------------------------------±---------+

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.