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

xcrun's deprecated PackageApplication is removed from Xcode 8.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xcode-plugin
    • Labels:
      None
    • Environment:
      Xcode 8.3, macOS 10.12.3
    • Similar Issues:

      Description

      I've updated the Xcode (to version 8.3) today and now all my Jenkins iOS builds are failing.

      This is the error:
      xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
      It looks like PackageApplication is removed from Xcode 8.3.

      In Xcode 8.2 there was a warning: PackageApplication is deprecated, use `xcodebuild -exportArchive` instead.

       

      Xcode Plugin should change the way it builds IPA file.

       

        Attachments

        1. image-2017-05-16-14-24-50-021.png
          23 kB
          Tonin Zhao
        2. Screen Shot 2017-05-11 at 5.59.32 PM.png
          180 kB
          Ravikiran Annavarapu
        3. Screen Shot 2017-05-16 at 2.26.32 AM.png
          45 kB
          Bryan Lahartinger
        4. Screen Shot 2017-05-16 at 2.26.50 AM.png
          26 kB
          Bryan Lahartinger
        5. Screen Shot 2017-05-16 at 2.27.13 AM.png
          38 kB
          Bryan Lahartinger

          Activity

          Hide
          adamsrosco Rosco Adams added a comment -

          Temporary Fix:

          If you have Xcode 8.2.1 or any version below 8.3, copy PackageApplication script from

          Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

          OR you can Download from this link - https://gist.github.com/anonymous/48f3e4c5ae25313dc0fe10d9ec50c3fc

          Go to finder -

          Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

          paste the copied/downloaded above file here.

          Show
          adamsrosco Rosco Adams added a comment - Temporary Fix: If you have Xcode 8.2.1 or any version below 8.3, copy PackageApplication script from Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin OR you can Download from this link - https://gist.github.com/anonymous/48f3e4c5ae25313dc0fe10d9ec50c3fc Go to finder - Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin paste the copied/downloaded above file here.
          Hide
          aheritier Arnaud Héritier added a comment -
          Show
          aheritier Arnaud Héritier added a comment - Should be fixed in 2.0.0 by  https://github.com/jenkinsci/xcode-plugin/pull/78
          Hide
          z2670692 Tonin Zhao added a comment -

          Bryan Lahartinger I have a new problem. Can you help me? Thanks
          Check dependencies
          No iOS profile matching 'xxx' found: Xcode couldn't find a profile matching 'xxx'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.

          Show
          z2670692 Tonin Zhao added a comment - Bryan Lahartinger  I have a new problem. Can you help me? Thanks Check dependencies No iOS profile matching 'xxx' found: Xcode couldn't find a profile matching 'xxx'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
          Hide
          aphex3k Michael Henke added a comment -

          Tonin Zhao Make sure you have your certificates set up and profiles downloaded using Xcode. I had the same error and was able to resolve it in the Xcode account management.

          Show
          aphex3k Michael Henke added a comment - Tonin Zhao Make sure you have your certificates set up and profiles downloaded using Xcode. I had the same error and was able to resolve it in the Xcode account management.
          Hide
          z2670692 Tonin Zhao added a comment -

          Michael Henke Thanks for your method. But I don't think my certificates and profiles have problems. I can use Xcode or  fastlane to archive my application. 

          Show
          z2670692 Tonin Zhao added a comment - Michael Henke Thanks for your method. But I don't think my certificates and profiles have problems. I can use Xcode or  fastlane to archive my application. 

            People

            • Assignee:
              blahartinger Bryan Lahartinger
              Reporter:
              petra25 Petra A
            • Votes:
              18 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: