Why standalone app uses Info.plist of my App.app bundle?

Dear Apple team,


I created an application App. When I ran it, it is shown in the Dock and opens the main window. That is a normal behavior.

Then I created new target as a standalone app console-app and moved console-app into App.app/Contents/MacOS/ folder.

When I run 'App.app/Contents/MacOS/console-app' in the Terminal, my standalone app is shown in the Dock and most probably it uses Info.plist from App's bundle. That is not what I expect. It must start as simple console application.


Could you please provide me the guide of how to add a standalone (console) application to existing App.


Regards,

Valery.