Error: iPhone developer: this identity cannot be used for signing code

Source: Internet
Author: User

The following error occurs:

IPhone developer: this identity cannot be used for signing code

Command/bin/sh failed with exit code 1

The specific cause is not clear, and the root cause is not found.

However, you can solve the problem by using the following script:

Export

Codesign_allocate =/applications/xcode. APP/contents/developer/platforms/iphoneos. Platform/developer/usr/bin/codesign_allocate

If ["$ {platform_name}" = "iphoneos"] | ["$ {platform_name}" = "ipados"]; then

/Applications/xcode. APP/contents/developer/iphoneentitlements/gen_entitlements.py "My. company. $ {project_name} "" $ {built_products_dir}/$ {wrapper_name}/$ {project_name }. xcent ";

Codesign-F-s "iPhone developer" -- entitlements "$ {built_products_dir}/$ {wrapper_name}/$ {project_name }. xcent "" $ {built_products_dir}/$ {wrapper_name }/"

Fi


It's also a little depressing ....

Finally, we found a solution to the problem. The problem was caused by a certificate creation error when the certificate was created.

When using the certificate assistant to create a certificate, select "code signature" as the certificate type.

After modification, You can debug the real machine without the problem of second return.

I had to wait a long time for the problem of second return ..... Nnd .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.