How to change PRODUCT_BUNDLE_IDENTIFIER before export step

So I’m building an iOS pipeline that needs two .ipa files. One is for development and the other for the app-store. I already have both certificates and provisioning profiles uploaded but the issue is after the xcodebuild step, I need to change the bundle identifier and then export the second .ipa.

  1. xcode-archive => Generates 1st .ipa (development), uses project bundle identifier
  2. export-xarchive => Need to generate 2nd .ipa (app-store), need to use a different bundle identifier.

The question is, how can I change the bundle id for the second step?

Thanks!

Hello @sgarcia :wave:

You can change the Bundle Identifier via the Set iOS Info.plist - Bundle Identifier step : https://www.bitrise.io/integrations/steps/set-ios-bundle-identifier :slight_smile:

Hope this helps!