我正试图在Mac上安装我们的产品 从命令线上:
$ installer -package /Volumes/setup.pkg/setup.pkg -target /Volumes/MacOS -verbose
installer: Package name is Foo
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing Foo….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Moving items into place….....
##
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
当从 GUI 运行时一切都很好。 sudo
没有帮助 。 我如何调试这个? 至少我需要一个信息更丰富的日志 。 将非常需要 。
自原始张贴以来的 < 坚固> 附加信息 : < / 坚固 > 从 GUI 运行该应用程序时, 应用程序被安装为 ${HOME}/ 运行该应用程序的用户( 按原计划) 的 ${HOME} / library 。 在从命令行运行时, 它试图将其安装到 / Library (甚至复制一些文件, 但不是全部) 。