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

Ability to change the Bundle identifier (CFBundleIdentifier) for an xcode build

    XMLWordPrintable

Details

    Description

      Similar to the Technical Version Number (CFBundleVersion), it would be nice to have an option to change the Bundle identifier (CFBundleIdentifier).

      Attachments

        Activity

          lacostej lacostej added a comment -

          should be released by now.

          lacostej lacostej added a comment - should be released by now.
          lacostej lacostej added a comment -

          Esteban's code was merged in and will be available in the next release.

          lacostej lacostej added a comment - Esteban's code was merged in and will be available in the next release.
          estebanbouza Esteban Bouza added a comment -

          Although I agree this issue functionality should be added, I'm currently using a pre-build script in order to change the bundle ID:

          /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier $BUNDLE_ID" $PLIST_DIR/$PLIST_FILENAME

          estebanbouza Esteban Bouza added a comment - Although I agree this issue functionality should be added, I'm currently using a pre-build script in order to change the bundle ID: /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier $BUNDLE_ID" $PLIST_DIR/$PLIST_FILENAME
          markuswarren Mark Warren added a comment -

          I concur. I'm currently trying to use a shell command prior to the Xcode plugin to set the CFBundleIdentifier value:
          defaults write ${WORKSPACE}/Targetname-Info CFBundleIdentifier com.mycompany.mycompany

          However, this results in a build error:

          The following build commands failed:
          ProcessInfoPlistFile /Users/Jenkins/workspace/MyApp/builds/MyApp.app/Info.plist Targetname-Info.plist
          (1 failure)
          Build step 'XCode' marked build as failure

          I'm trying to figure out what is going on there, looks like something is messing up the file somehow.

          markuswarren Mark Warren added a comment - I concur. I'm currently trying to use a shell command prior to the Xcode plugin to set the CFBundleIdentifier value: defaults write ${WORKSPACE}/Targetname-Info CFBundleIdentifier com.mycompany.mycompany However, this results in a build error: The following build commands failed: ProcessInfoPlistFile /Users/Jenkins/workspace/MyApp/builds/MyApp.app/Info.plist Targetname-Info.plist (1 failure) Build step 'XCode' marked build as failure I'm trying to figure out what is going on there, looks like something is messing up the file somehow.
          rvalue Rowan James added a comment -

          This would be a great assist to me; setting a distinct bundle identifier lets a built iPhone app install side-by-side with another build of the same project.

          rvalue Rowan James added a comment - This would be a great assist to me; setting a distinct bundle identifier lets a built iPhone app install side-by-side with another build of the same project.

          People

            estebanbouza Esteban Bouza
            lindon_fox John Grattan
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: