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

          yecine06 yecine yecine created issue -
          aheritier Arnaud Héritier made changes -
          Field Original Value New Value
          Assignee aheritier [ aheritier ]
          Hide
          aheritier Arnaud Héritier added a comment -

          Which parameters did you defined in your configuration ?

          Show
          aheritier Arnaud Héritier added a comment - Which parameters did you defined in your configuration ?
          Hide
          yecine06 yecine yecine added a comment -

          I have set Target and debug configuration

          I have also check clean build and build ipa

          That's all i have set

          Show
          yecine06 yecine yecine added a comment - I have set Target and debug configuration I have also check clean build and build ipa That's all i have set
          Hide
          ohoeltke Oliver H added a comment -

          Same here using Xcode 4.1.
          I've taken configuration and source package from this tutorial: http://blog.shinetech.com/2011/06/23/ci-with-jenkins-for-ios-apps-build-distribution-via-testflightapp-tutorial/
          Using an absolute path for output it works here too.

          Show
          ohoeltke Oliver H added a comment - Same here using Xcode 4.1. I've taken configuration and source package from this tutorial: http://blog.shinetech.com/2011/06/23/ci-with-jenkins-for-ios-apps-build-distribution-via-testflightapp-tutorial/ Using an absolute path for output it works here too.
          Hide
          ohoeltke Oliver H added a comment - - edited

          settings an absolute path as “Remote FS root" for the working node does the trick!
          "dev/jenkins" as stated in the tutorial does not work
          "/Users/oho/dev/jenkins" does work fine.

          Show
          ohoeltke Oliver H added a comment - - edited settings an absolute path as “Remote FS root" for the working node does the trick! "dev/jenkins" as stated in the tutorial does not work "/Users/oho/dev/jenkins" does work fine.
          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
          aheritier Arnaud Héritier made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          ohoeltke Oliver H made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142466 ] JNJira + In-Review [ 205552 ]

            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: