Error: "Failed to execute dylibcodesign with exit code: 1" on MDX Toolkit

Error: "Failed to execute dylibcodesign with exit code: 1" on MDX Toolkit

book

Article ID: CTX135253

calendar_today

Updated On:

Description

Unable to successfully wrap iOS applications by using MDX Toolkit.

When the CGAppPrepTool is running, the tool fails with the following error:
"Failed to execute dylibcodesign with exit code: 1"

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Resolution

Complete the following steps to resolve this issue:

  1. Go to Xcode > Preferences > Downloads, and install Command Line Tools.

  2. Run the CGAppPrepTool again.

    User-added image

If the issue is still not resolved, then complete the following steps:

  1. Delete the expired Apple Developer Certificates from the Macs keychain in the System Store. Note: The keychain does not show expired certificates by default.
  2. From the menu, click View > Show Expired Certs to enable the certificate.
  3. The invalid certificate is indicated with a Red X circle in the Name column.
  4. Delete the old certificate and build the tool again.
  5. Verify if there are distribution certificates with identical names. If Yes, then remove the certificates with identical names.
  6. Verify if the distribution certificate installed to the keychain has associated private key.

Problem Cause

Command Line Tools is not installed in the Xcode.

Missing private key or chain from the distribution certificate.

Distribution certificates with identical names.

Issue/Introduction

This article describes possible solutions for the error: Failed to execute dylibcodesign with exit code: 1.

Additional Information

Xcode codesign failed with exit code 1; expired certificates causing ambiguous matches

CTX200139 - Error: "Xcode Command Line tool is not installed" on MDX Toolkit