-
Bug
-
Resolution: Not A Defect
-
Blocker
-
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:
-
-
- 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
- Codesigning '/Users/Jenkins/Library/MobileDevice/Provisioning Profiles/539ad1e3-561a-417a-a1da-8b71fdd6ad5e.mobileprovision' with 'iPhone Distribution: Siemens Enterprise Communications, Inc.'
-
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 **
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