Unable to change the Build Number

#1

Hi, I’m new to bitrise. I already created my workflow but I’m unable to change the build number before uploading the IPA to the AppStore and this causes the process to crash because of “Redundant Binary” error.

Here is my workflow, hope someone can help me:

---
format_version: '4'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: master
workflow: Master
- push_branch: development
  workflow: Development
- pull_request_source_branch: "*"
  workflow: Master
workflows:
  Master:
    steps:
    - activate-ssh-key@3.1.1:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.5: {}
    - cache-pull@2.0.1: {}
    - certificate-and-profile-installer@1.9.2: {}
    - cocoapods-install@1.7.2: {}
    - xcode-project-info@2.0.0:
        inputs:
        - info_plist_path: "$INFO_PLIST_PATH"
    - script@1.1.5:
        inputs:
        - content: |-
            echo "XPI_VERSION: "$XPI_VERSION
            echo "XPI_BUILD: "$XPI_BUILD
            echo "BITRISE_BUILD_NUMBER: "$BITRISE_BUILD_NUMBER
    - set-xcode-build-number@1.0.5:
        inputs:
        - build_version_offset: '5'
        - plist_path: "$INFO_PLIST_PATH"
    - xcode-project-info@2.0.0:
        inputs:
       - info_plist_path: "$INFO_PLIST_PATH"
    - script@1.1.5:
        inputs:
        - content: |-
            echo "XPI_VERSION: "$XPI_VERSION
            echo "XPI_BUILD: "$XPI_BUILD
            echo "BITRISE_BUILD_NUMBER: "$BITRISE_BUILD_NUMBER
    - xcode-archive@2.4.3:
        inputs:
        - project_path: "$BITRISE_PROJECT_PATH"
        - scheme: "$BITRISE_SCHEME"
        - export_method: "$BITRISE_EXPORT_METHOD"
    - deploy-to-bitrise-io@1.3.10: {}
    - deploy-to-itunesconnect-deliver@2.11.0:
        inputs:
        - password: Example
        - app_id: '1040163125'
        - bundle_id: com.myapp.AppMyApp
        - itunescon_user: example@example.com
    - cache-push@2.0.3: {}
app:
  envs:
  - opts:
      is_expand: false
    BITRISE_PROJECT_PATH: falabella-seguros/falabella-seguros.xcworkspace
  - opts:
      is_expand: false
    BITRISE_SCHEME: falabella-seguros
  - opts:
      is_expand: false
    BITRISE_EXPORT_METHOD: app-store
  - INFO_PLIST_PATH: falabella-seguros/falabella-seguros/Info.plist
0 Likes

#2

Fixed it … I was pointing to the info.plist of another Scheme inside the project …

1 Like

#3

Glad to hear you found the issue @Contreras - Happy Building! :slight_smile:

0 Likes

#4

Thanks for solving my issue too :smiley:

0 Likes