0

I created a .pkg installer using Iceberg on OS X.

The installer runs fine, but when I try to run the installed application, it crashes within a couple seconds.

However if I take the same .app folder from the XCode build and copy it in the Finder to the Applications folder, the application runs fine and does not crash.

So the only difference is the copy method. From the .pkg installer the app crashes. If I just do a simple copy, the application runs fine.

In Iceberg, I even turned off "compress" in the archiving options to see if that was causing problems.

Can you think of any reason why the .PKG .app folder would be different?

Thanks for your help.

4

1 回答 1

0

我想到了。

这是一个权限问题,虽然我不知道为什么。

基本上安装程序 pkg 设置为复制具有 755 权限的所有内容。即使 .app 文件夹中的所有文件都不需要在我的代码中写入权限,我猜 OS X 必须需要对某些文件的组写入权限。

一旦我将安装中的所有内容更改为 775 权限,该应用程序就开始正常工作。但是使用 755,应用程序会立即崩溃/退出。

任何人都知道应用程序中是否有某些系统文件需要组写权限?

于 2014-05-09T04:30:23.197 回答