The application “SomeApp.app” can’t be opened
"The application “SomeApp.app” can’t be opened." Note that this differs from the "SomeApp can't be opened because it was not downloaded from the Mac App Store" or "SomeApp can’t be opened because it is from an unidentified developer” message that is the result of Gatekeeper settings.
the solution : required modifying the executable status of the "inner" application file. This line:
chmod +x SomeApp.app/Contents/MacOS/*