문제

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

도움이 되었습니까?

해결책

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.

다른 팁

the distribution process is a pain in the ass. here are what I just did to solve issues, not exactly the same as yours.

  1. delete all provisions in xcode
  2. delete all certificate in keychains
  3. "Refresh" in "Provisioning Profiles"
  4. download distribution provision for the specific app
  5. generate the ipa file

when generating the ipa file, I use the second option, Save For Enterprise,

Other options didn't work for me

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top