codesign command hangs build systems under various configurations of certificates/profiles.

Originator:s.pankevich
Number:rdar://29772458 Date Originated:21-Dec-2016 05:07 PM
Status:Open Resolved:
Product:Xcode Product Version:Version 8.2 (8C38)
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
We have encountered this issue multiple times. Now we having this issue with latest upgrade of Xcode to 8.2 and we are having this issue on Travis.

1) I can only attach our latest build log on Travis where we tripple-checked the correctness of our certificates and profiles.

2) https://github.com/travis-ci/travis-ci/issues/6675 issue is another manifestation of similar behaviour when codesign just hangs.

3) http://stackoverflow.com/questions/40994404/xcodebuild-stuck-at-codesign-step-when-being-run-in-travis-ci

Steps to Reproduce:
Unfortunately the issue is hard to reproduce.


Expected Results:
We expect codesign to either succeed or fail in a reasonable time with a human-readable explanation of a failure reason. 

Actual Results:
codesign hangs without printing anything to a console.

Version:
Version 8.2 (8C38)



Notes:
The issue is hard to reproduce however for us it is quite obvious that codesign should be smarter about error reporting and failing with errors after a certain timeout (could be a configurable option).

A lot of people suffer from just this single codesign problem.

I am willing to provide any additional information by request.

Configuration:


Attachments:
'2016.12.21.Travis.CodeSign.txt' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!