• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • xcode-plugin
    • Jenkins on a Linux server
      Build environment Mac Mini OS X Yosemite xCode 6.1

      When providing data for code signing inside the xCode plugin the code generated for running the code signing command does not work anymore
      Output of failed attempt:

          1. Codesigning '/Users/Jenkins/Library/MobileDevice/Provisioning Profiles/539ad1e3-561a-417a-a1da-8b71fdd6ad5e.mobileprovision' with 'iPhone Distribution: Siemens Enterprise Communications, Inc.'
            + /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: Siemens Enterprise Communications, Inc. --resource-rules=/var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app/ResourceRules.plist --entitlements /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/entitlements_plistiUnWRfKz /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app
            Program /usr/bin/codesign returned 1 : [Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
            Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
            /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app/ResourceRules.plist: cannot read resources
            ]
            error: /usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign iPhone Distribution: Siemens Enterprise Communications, Inc. --resource-rules=/var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app/ResourceRules.plist --entitlements /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/entitlements_plistiUnWRfKz /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app failed with error 1. Output: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
            Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
            /var/folders/x1/vl7zqkh90txfhkgwhm8stb640000gp/T/gHLl76ymfc/Payload/ansible.app/ResourceRules.plist: cannot read resources

      Failed to build
      Output when no data is given (luckily there is only one profile):
      CodeSign /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/InstallationBuildProductsLocation/Applications/ansible.app
      cd /Users/jenkins/Ansible/mobileclient/ios
      export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/apache-maven/apache-maven-3.0.5/bin"

      Signing Identity: "iPhone Distribution: Siemens Enterprise Communications, Inc."
      Provisioning Profile: "OSMO Internal 2013"
      (539ad1e3-561a-417a-a1da-8b71fdd6ad5e)

      /usr/bin/codesign --force --sign F25A1E6F9A4774208A8C590C1953493BDEE6F005 --entitlements /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/IntermediateBuildFilesPath/ansible.build/Distribution-iphoneos/ansible.build/ansible.app.xcent /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/InstallationBuildProductsLocation/Applications/ansible.app

      Validate /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/InstallationBuildProductsLocation/Applications/ansible.app
      cd /Users/jenkins/Ansible/mobileclient/ios
      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/apache-maven/apache-maven-3.0.5/bin"
      export PRODUCT_TYPE=com.apple.product-type.application
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/InstallationBuildProductsLocation/Applications/ansible.app

      Touch /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/BuildProductsPath/Distribution-iphoneos/ansible.app.dSYM
      cd /Users/jenkins/Ansible/mobileclient/ios
      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/apache-maven/apache-maven-3.0.5/bin"
      /usr/bin/touch -c /Users/jenkins/Library/Developer/Xcode/DerivedData/iEvo-enwhqohbbpcykjfzpnndatwaxwkd/ArchiveIntermediates/ansible/BuildProductsPath/Distribution-iphoneos/ansible.app.dSYM

        • ARCHIVE SUCCEEDED **

          [JENKINS-25433] Xcodebuild sigining fails

          Reinhard Karbas created issue -

          I really need this fixed ASAP, it is starting to block load productions!!

          Reinhard Karbas added a comment - I really need this fixed ASAP, it is starting to block load productions!!
          Reinhard Karbas made changes -
          Labels New: build plugin

          Matan Eine added a comment -

          It's not related with jenkins plugin at all. Same error happens with xcrun -sdk iphoneos PackageApplication. Jenkins just calling this command line as a build step.
          http://stackoverflow.com/questions/26464577/jenkins-vs-xcode-plugin-codesign-troubles

          Matan Eine added a comment - It's not related with jenkins plugin at all. Same error happens with xcrun -sdk iphoneos PackageApplication. Jenkins just calling this command line as a build step. http://stackoverflow.com/questions/26464577/jenkins-vs-xcode-plugin-codesign-troubles

          Matan Eine added a comment -

          It's not related with jenkins plugin at all. Same error happens with xcrun -sdk iphoneos PackageApplication. Jenkins just calling this command line as a build step.
          http://stackoverflow.com/questions/26464577/jenkins-vs-xcode-plugin-codesign-troubles

          Matan Eine added a comment - It's not related with jenkins plugin at all. Same error happens with xcrun -sdk iphoneos PackageApplication. Jenkins just calling this command line as a build step. http://stackoverflow.com/questions/26464577/jenkins-vs-xcode-plugin-codesign-troubles
          Matan Eine made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Matan Eine made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Matan Eine made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Reopened [ 4 ] New: Closed [ 6 ]

          I do not agree to close this issue as not being a bug
          Fact is that xcodesigning is called with a deprecated parameter and Apple listing in their TN that apps with a resource plist in them will be rejected
          We worked our way around now by creating a separate configuration to pull in the correct signing certificate without having to enter it in the xcode plugin
          However the plugin needs to be fixed to run codesigning without the resource rules

          Reinhard Karbas added a comment - I do not agree to close this issue as not being a bug Fact is that xcodesigning is called with a deprecated parameter and Apple listing in their TN that apps with a resource plist in them will be rejected We worked our way around now by creating a separate configuration to pull in the correct signing certificate without having to enter it in the xcode plugin However the plugin needs to be fixed to run codesigning without the resource rules
          Reinhard Karbas made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            rkarbas Reinhard Karbas
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: