We are trying to run codesign on a bundle that has a symlink in place of the executable in the /MacOS folder. Codesign produces an error "the main executable or Info.plist must be a regular file (no symlinks, etc.)."
We have tried replacing the symlink with a copy of the file but this breaks our launcher. We have also tried removing the symlink and changing the CFBundleExecutable value in the info.plist to be the relative path to the file. This fixes the error in codesign but causes Application Loader to fail during verification because it cannot find the executable.
Is there a way to sign a bundle that contains a symlink in place of the main executable? Alternatively is there a way to remove the symlink that still allows the application to launch?