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:
-
Go to Xcode > Preferences > Downloads, and install Command Line Tools.
-
Run the CGAppPrepTool again.

If the issue is still not resolved, then complete the following steps:
- Delete the expired Apple Developer Certificates from the Macs keychain in the System Store. Note: The keychain does not show expired certificates by default.
- From the menu, click View > Show Expired Certs to enable the certificate.
- The invalid certificate is indicated with a Red X circle in the Name column.
- Delete the old certificate and build the tool again.
- Verify if there are distribution certificates with identical names. If Yes, then remove the certificates with identical names.
- 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.
Was this article helpful?
thumb_up
Yes
thumb_down
No