Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30714

Changing product bundle identifier is not it in all the places.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • xcode-plugin
    • None
    • Jenkins ver. 1.629
      Xcode integration 1.4.9

      I'm setting up Jenkins to automate the build process. In particular, for my needs, I'd like to be able to set different bundle identifiers.

      I'm using the Xcode Jenkins plugin to set the bundle identifier:

      The problem is that this will change the bundle identifier in the Info.plist file and in MyTarget > General > Bundle Identifier. But it won't change the bundle identifier in Build Settings > Packaging > Product Bundle Identifier.

      The image below shows which value is not changed by the plugin:

      Because of this issue the build will fail because, of course, the bundle id will not match the certificate and provisioning profile.

          [JENKINS-30714] Changing product bundle identifier is not it in all the places.

          Luca Torella added a comment -

          Actually I had another issue, I just needed to add "CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist"

          Luca Torella added a comment - Actually I had another issue, I just needed to add "CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist"

          Luca Torella added a comment -

          actually bug is still there

          Luca Torella added a comment - actually bug is still there

          I have the same issue:

          Trying to solve it using this command:
          xcodebuild -workspace MyProject.xcworkspace -scheme MyScheme -configuration ${BUILD_CONFIG} PRODUCT_BUNDLE_IDENTIFIER=${TRIM_BUNDLE_ID}

          Got this message:
          _Build settings from command line:
          PRODUCT_BUNDLE_IDENTIFIER = com.myCompany.mygame
          SDKROOT = iphoneos9.2_

          Santiago Navarro Ruiz added a comment - I have the same issue: Trying to solve it using this command: xcodebuild -workspace MyProject.xcworkspace -scheme MyScheme -configuration ${BUILD_CONFIG} PRODUCT_BUNDLE_IDENTIFIER=${TRIM_BUNDLE_ID} Got this message: _Build settings from command line: PRODUCT_BUNDLE_IDENTIFIER = com.myCompany.mygame SDKROOT = iphoneos9.2_

            Unassigned Unassigned
            lucatorella Luca Torella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: