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

xcrun's deprecated PackageApplication is removed from Xcode 8.3

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Fixed
    • xcode-plugin
    • None
    • Xcode 8.3, macOS 10.12.3

    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

        Activity

          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.

          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.
          aheritier Arnaud Héritier added a comment - Should be fixed in 2.0.0 by  https://github.com/jenkinsci/xcode-plugin/pull/78
          z2670692 Tonin Zhao added a comment -

          blahartinger 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.

          z2670692 Tonin Zhao added a comment - blahartinger  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.
          aphex3k Michael Henke added a comment -

          z2670692 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.

          aphex3k Michael Henke added a comment - z2670692 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.
          z2670692 Tonin Zhao added a comment -

          aphex3k 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. 

          z2670692 Tonin Zhao added a comment - aphex3k 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

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

            Dates

              Created:
              Updated:
              Resolved: