Code signing failed when Distribute app in Organizer

ios, organizer, signing, xcode

Solution

It may be because you might have installed some third party signing apps (InstaSign for example). Download my backup of files from following URL: https://www.dropbox.com/s/xawvd81zzedz0jo/codesign.zip

Extract and paste the files at /usr/bin (Use Command+Shift+G to enter path directly.)

This should fix it.

Problem

My xcode suddenly got a problem to Distribute any application. When I click "Distribute..." button and select a code signing identity. Here is the error message: Code signing operation failed Invalid arguments were passed to codesign. Arguments were: --sign fd2f30b26c9b384c635a044aefa90683239a434a --force --preserve-metadata=identifier,entitlements,resource-rules /var/folders/c6/yjp3wvhx2bv34_wpcg4j779c0000gn/T/AD6840D0-4776-4EEF-BFC6-9EBA2A1188D6-212-0000012034964EA7/TestSigning.app/TestSigning The problem happens for every project so I think it's xcode problem. The only thing I did before this problem occurs is I clicked the "Refresh" button in "Provisoning Profiles" view. All provisioning profiles are valid and I can run all the applications in my devices. The only problem is I can't distribute them. Any idea? Thanks

Original source