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

INFOPLIST_FILE with Environment Variable breaks IPA Packaging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • xcode-plugin
    • None

      In my project.pbxproj file, I had the following INFOPLIST_FILE setting:

      INFOPLIST_FILE = "$(SRCROOT)/jive-ipad/jive-ipad-Info.plist";
      

      Which yielded the following weird output:

      Fetching marketing version number (CFBundleShortVersionString) from project.
      [jive-pkg-ipad_develop] $ /usr/bin/agvtool mvers -terse1
      Found marketing version (CFBundleShortVersionString): $(SRCROOT)/jive-ipad/jive-ipad-Info.plist
      0.5.3.
      Marketing version (CFBundleShortVersionString) found in project configuration: $(SRCROOT)/jive-ipad/jive-ipad-Info.plist
      0.5.3.
      Fetching technical version number (CFBundleVersion) from project.
      [jive-pkg-ipad_develop] $ /usr/bin/agvtool vers -terse
      No marketing version found (CFBundleVersion)
      Technical version (CFBundleVersion) found in project configuration: .
      Marketing version (CFBundleShortVersionString) used by Jenkins to produce the IPA: $(SRCROOT)/jive-ipad/jive-ipad-Info.plist
      0.5.3
      

      I switched it to this setting:

      INFOPLIST_FILE = "jive-ipad/jive-ipad-Info.plist";
      

      And everything worked fine:

      Fetching marketing version number (CFBundleShortVersionString) from project.
      [jive-pkg-ipad_develop] $ /usr/bin/agvtool mvers -terse1
      Found marketing version (CFBundleShortVersionString): 0.5.3.
      Marketing version (CFBundleShortVersionString) found in project configuration: 0.5.3.
      Fetching technical version number (CFBundleVersion) from project.
      [jive-pkg-ipad_develop] $ /usr/bin/agvtool vers -terse
      No marketing version found (CFBundleVersion)
      Technical version (CFBundleVersion) found in project configuration: .
      Marketing version (CFBundleShortVersionString) used by Jenkins to produce the IPA: 0.5.3
      

      This is easy to workaround, but if you don't support environment variables in the INFOPLIST_FILE setting, you should emit an error message.

            Unassigned Unassigned
            hborders Heath Borders
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: