什么是Mac上的应用程序捆绑包? [英] What is an App Bundle on Mac?

查看:471
本文介绍了什么是Mac上的应用程序捆绑包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用g ++和-framework的基本C ++应用程序构建...

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

当我运行它时,我得到一个:

when I run it, I get a :

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

(这不是我的任何应用程序所引用的std ::.)

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

是什么原因造成的,我该如何摆脱呢?

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

谢谢!

推荐答案

您需要创建一个文件夹结构,并将二进制文件放在一个特殊的位置.有关示例的说明,请参见 Qt页面

You need to create a folder structure and place the binary in a special location. For an example with explanation see this Qt page

Mac OS X将大多数应用程序视为捆绑包".捆绑包是将相关文件分组在一起的目录结构.捆绑包用于GUI应用程序,框架和安装程序包.这些在Finder中作为一个文件呈现给用户.正确设置后,捆绑包可简化部署.所有需要做的就是使用某种首选方法来归档应用程序.然后,用户打开档案并将应用程序拖到他们想要的任何地方,并准备好去那里.

Mac OS X handles most applications as "bundles". A bundle is a directory structure that groups related files together. Bundles are used for GUI applications, frameworks, and installer packages. These are presented to the user as one file in the Finder. When set up correctly, bundles make for easy deployment. All one needs to do is to archive the application using some preferred method. Users then open the archive and drag the application to wherever they please and are ready to go.

关于 wxWidgets 的内容也与此

MacOSX引入了一种组合应用程序的新方法.无需将资源派生添加到可执行文件中,您只需创建一个特殊目录(文件夹)即可.这是OSX的首选方法.

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

这篇关于什么是Mac上的应用程序捆绑包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆