What is the App Bundle on Mac?

I have a basic C ++ assembly using g ++ and -framework ...

when i run it i get:

Working in unbundled mode. You should build a .app wrapper for your Mac OS X applications. 

(which is not std :: couted by any of my applications).

What causes this, and how can I get rid of it?

Thanks!

+4
source share
1 answer

You need to create a folder structure and put the binary in a special place. An example with explanation see here Qt page

Mac OS X treats most applications as packages. A package is a directory structure that groups related files together. Bundles are used for GUI applications, frameworks, and installer packages. They are presented to the user as a single file in the Finder. When configured correctly, bundles make deployment easier. All you have to do is archive the application using any preferred method. Then users open the archive and drag the application to where they want, and are ready to go.

Something is written about it for wxWidgets too

MacOSX introduces a new way to create an application. Instead of adding a resource of resources to the executable file, you can simply create a special directory (folder). This is the preferred method for OSX.

+5
source

Source: https://habr.com/ru/post/1299130/


All Articles