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

Impossible to build ipa

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xcode-plugin
    • Labels:
      None
    • Environment:
      v1.2.1
    • Similar Issues:

      Description

      Hi,

      I'm trying to setup a remote node to build my ios apps

      The app is building correctly but it fails on IPA build, the plugin tries to build the ipa with a relative path but it doesn't work. I tried to copy paste the command directly on my mac and i have the same error

      But when i set the absolute path it works ...

      Here are the logs for more information

      CodeSign build/Debug-iphoneos/JenkinsIOSExample.app
      cd /Users/yecine/dev/jenkins/workspace/first-ios-app
      setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
      setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      /usr/bin/codesign --force --sign "iPhone Developer: Julien Menard (E9Y4C3U94P)" --resource-rules=/Users/yecine/dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample.app/ResourceRules.plist --entitlements /Users/yecine/dev/jenkins/workspace/first-ios-app/build/JenkinsIOSExample.build/Debug-iphoneos/JenkinsIOSExample.build/JenkinsIOSExample.xcent /Users/yecine/dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample.app

        • BUILD SUCCEEDED **

      Cleaning up previously generate .ipa files
      Packaging IPA
      Packaging JenkinsIOSExample.app => dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample-Debug-1.0.ipa
      [first-ios-app] $ /usr/bin/xcrun -sdk iphoneos PackageApplication -v dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample.app -o dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample-Debug-1.0.ipa
      error: Specified application doesn't exist or isn't a bundle directory : 'dev/jenkins/workspace/first-ios-app/build/Debug-iphoneos/JenkinsIOSExample.app'
      Failed to build JenkinsIOSExample-Debug-1.0.ipa

        Attachments

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          ok, I will try to reproduce the issue with this tutorial to fix the bug.

          Show
          aheritier Arnaud Héritier added a comment - ok, I will try to reproduce the issue with this tutorial to fix the bug.
          Hide
          aheritier Arnaud Héritier added a comment -

          Yecine, Olivier, I confirm that I reproduced the issue if I'm using the plugin with a remote agent and a relative path instead of an absolute path for the agent remote FS root.

          Show
          aheritier Arnaud Héritier added a comment - Yecine, Olivier, I confirm that I reproduced the issue if I'm using the plugin with a remote agent and a relative path instead of an absolute path for the agent remote FS root.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          pom.xml
          http://jenkins-ci.org/commit/xcode-plugin/2c95751cda8ca562763cf017d95bfc804b4e52f6
          Log:
          JENKINS-12144 : It will be a bug fix

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: pom.xml http://jenkins-ci.org/commit/xcode-plugin/2c95751cda8ca562763cf017d95bfc804b4e52f6 Log: JENKINS-12144 : It will be a bug fix
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Arnaud Héritier
          Path:
          src/main/java/au/com/rayh/XCodeBuilder.java
          http://jenkins-ci.org/commit/xcode-plugin/bf710312e215e5fa48b0fd344c5a602192b03deb
          Log:
          JENKINS-12144 : Always use an absolute path to not have problems when we have a relative path for the FS Root of the remote agent

          Compare: https://github.com/jenkinsci/xcode-plugin/compare/4a8b2ec...bf71031

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Arnaud Héritier Path: src/main/java/au/com/rayh/XCodeBuilder.java http://jenkins-ci.org/commit/xcode-plugin/bf710312e215e5fa48b0fd344c5a602192b03deb Log: JENKINS-12144 : Always use an absolute path to not have problems when we have a relative path for the FS Root of the remote agent Compare: https://github.com/jenkinsci/xcode-plugin/compare/4a8b2ec...bf71031
          Hide
          aheritier Arnaud Héritier added a comment -

          Fixed in 1.2.2, available in few hours.
          Please close this issue to validate the fix

          Show
          aheritier Arnaud Héritier added a comment - Fixed in 1.2.2, available in few hours. Please close this issue to validate the fix

            People

            • Assignee:
              aheritier Arnaud Héritier
              Reporter:
              yecine06 yecine yecine
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: