Here is a quick tip to fix an error when wrapping iOS apps using the updated MDX Toolkit for the updated iOS 8 Worx Apps.

You may receive the following error when trying to wrap Worx apps after updating your Apple iOS Devlepor for Enterprise certificate and provisioning file to include Team Identifier (ID) and the Organizational Unit (OU) fields required for iOS 8.

**Error: “Failed to execute dylibcodesign with exit code: 1”
**
There is an article on Citrix Support – CTX135253 – Error:”Failed to execute dylibcodesign with exit code: 1”.  Now the Citrix support article states the error is from not having the Xcode Command Line Tools installed or an expired Apple iOS Developer for Enterprise certificate.  Neither of the above were causing the error as the Apple iOS Devloper for Enterprise certificate was not expired and the Xcode Command Line Tools were installed.

Since the Apple iOS Developer for Enterprise certificate and provisioning profile were updated as required for iOS 8, having both the previous and current certifcate and profiles on the system causes the problem and you will see the error mentioned above.  Both the previous and current certificates are not expired, they are current.

To fix the issue simply do the following:

  1. Delete the previous certificate in Keychain Access in the login and System Keychains.  Make sure the All Items Category is selected when doing this.
  2. Delete all previous provisioning profiles.

Once the above has been completed, you should be able to wrap the updated Worx apps for iOS without errors.

If you have found this article interesting or if you have any insights, please feel free to contact me via email.