How to export ipa with new file name

#1

Hello,
is any possibility to export ipa file name with number version? I want to create file like that:

[PROJECT_NAME]_[APP_VERSION].ipa

Regards

0 Likes

#2

Hi Salesbook!

For this, you will need to fetch the version of the app from the Info.plist first, and change the “Generated Artifact Name” input in the “Xcode Archive & Export for iOS” step.


Step for parsing the version

You can get the version of the app from the Info.plist with one of our community steps:


Guide

  1. Add the “Xcode Project Info” step before the “Xcode Archive & Export for iOS” step.

  2. Set the path of the Info.plist file (most of the time it’s {IOS_PROJECT_NAME}/info.plist )

  1. Modify the “Generated Artifact Name” input (under the debug section) in the “Xcode Archive & Export for iOS” step to:
    {IOS_PROJECT_NAME}_$XPI_VERSION


Sample workflow in bitrise.yml:

sandbox_deploy-development:
    steps:
    - activate-ssh-key:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone: {}
    - cache-pull: {}
    - ios-auto-provision@1.3.1:
        inputs:
        - generate_profiles: 'yes'
        - team_id: "$DEVELOPER_TEAM"
    - xcode-project-info@2.0.0:
        inputs:
        - info_plist_path: $PROJECT_NAME/Info.plist
    - xcode-archive:
        inputs:
        - artifact_name: $PROJECT_NAME_$XPI_VERSION
        - export_method: "$BITRISE_EXPORT_METHOD"
    - deploy-to-bitrise-io:
        inputs:
        - notify_user_groups: none
    - cache-push: {}
2 Likes

#3

The above-given details will definitely help you and the main thing is that you need to modify the code to get it accessible and also it will run properly. The Xcode project info will help.

2 Likes

closed #4

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

0 Likes