dongzhan7909 2016-06-19 15:31
浏览 38

如何访问用Golang编写的OS X沙箱应用程序的资源文件?

I packaged a Golang application into a OSX pkg file:

productbuild --component foo.app /Applications --sign "test" foo.pkg

I can install the pkg file successfully, but can NOT launch it.

Because it can NOT read any files in the /Application/foo.app/Content/Resources.

I know that the app is running in a sandbox, and it can only read/write ~/Library/Containers/foo folder.

Basically, there are two ways may let access files int resources folder:

  1. Is there any APIs(Golang) available to visite files in ~/Library/Containers/foo?

  2. Can I make /Application/foo.app/Content/Resources be installed to ~/Library/Containers/foo? If so, how to package the app?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 对于这个复杂问题的解释说明
    • ¥50 三种调度算法报错 采用的你的方案
    • ¥15 关于#python#的问题,请各位专家解答!
    • ¥200 询问:python实现大地主题正反算的程序设计,有偿
    • ¥15 smptlib使用465端口发送邮件失败
    • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
    • ¥15 对于squad数据集的基于bert模型的微调
    • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
    • ¥20 steam下载游戏占用内存
    • ¥15 CST保存项目时失败