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

IPA Generation Error in Jenkins

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • xcode-plugin
    • None
    • Xcode 8.3,Mac OS 10.12.4

    Description

      Any update on the latest version of Xcode plugin to get released??. I am facing the same issue unable to find "PackageApplication" utility while creating an IPA through Jenkins.

      I tried an alternate way to generate IPA, but it also failed using Jenkins, Whereas the same i am able  to achieve through terminal command prompt.It was able to archive file and creates an IPA file successfully without any issues.

      Steps  followed: (Created a Shell Script under build options in Jenkins)

      1. Go to the path of Xcode Project

        cd <Path of ur Xcode Project>

       

      1. Archive the application
        xcodebuild \
        -scheme {SCHEMA_NAME} \
        -sdk {SDK_NAME} \
        -archivePath {WORKSPACE}\ App.xcarchive \
        -configuration Release \
        PROVISIONING_PROFILE={PROVISIONING_PROFILENAME} \
        archive
      1. Export the archive to an ipa
        xcodebuild \
        -exportArchive \
        -archivePath {WORKSPACE}\ App.xcarchive \
        -exportOptionsPlist {PLIST_PATH}\Enterprise.plist" \
        -exportPath {WORKSPACE}/ipa-dir

       

      Enterprise.plist

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      <key>method</key>
      <string>enterprise</string>
      <key>teamID</key>
      <string>xxxxxxx</string>    --->You can get it in the developer portal.
      <key>compileBitcode</key>
      <false/>
      </dict>
      </plist>

      Using Mac Terminal, i was able to create archive and IPA with latest Xcode 8.3 and mac os 10.12.4. But through Jenkins, i was not able to create archive and IPA.Its saying build succeed but archive is not getting created in the path..Can anyone suggest any solution??

      Attachments

        Activity

          aheritier Arnaud Héritier added a comment - Fixed by 2.0.0  https://github.com/jenkinsci/xcode-plugin/pull/78

          People

            aheritier Arnaud Héritier
            ravikiran082 Ravikiran Annavarapu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: