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

Xcodebuild sigining fails

XMLWordPrintable

    • 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 **

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

              Created:
              Updated:
              Resolved: