When you are doing ADF Mobile development, and you need to deploy the
application to an iOS device, you would need to compile/deploy the app
with iOS App Certificates and Provisioning Profile. This means you
would need to "Deploy to Package" or "Deploy to iTunes" during
deployment, and configure JDeveloper with the proper
certificates/profiles. In some instances (exact combination is still
not clear), deploy and signing the application to generate the ipa file
may fail with similar error message at the end of the deployment log:
[01:04:45 PM] Deployment failed due to one or more errors returned by
'/usr/bin/xcrun'. The following is a summary of the returned error(s):
Command-line execution failed (Return code: 1) error: /usr/bin/codesign
--sign iPhone Distribution: Oracle Corporation
failed with error 1. Output:
replacing existing signature Program /usr/bin/codesign returned 1 :
replacing existing signature
This issue is a known issue and is not related to ADF Mobile. The
workaround is discussed in href="http://stackoverflow.com/questions/7425840/that-codesign-returned-1-object-ifile-format-invalid-or-unsuitable-problem-aga"
target="_blank">this article from StackOverflow.
This article refers to the old location of Xcode, so you would need to
adjust the paths accordingly. The path for Xcode 4.3 and above would be
to this script file.
To modify it, you probably can’t use Text Editor. I end up opening a
terminal session, changed the file permission, and used vi to update
Oracle ADF Mobile Product Management Team</a