【发布时间】:2011-05-22 00:41:34
【问题描述】:
苹果建议在提交到 Mac 应用商店之前,使用命令测试 Mac 的安装过程
sudo installer -store -pkg path-to-package -target /
我将应用程序包保存到桌面,然后在终端中发送命令
sudo installer -store -pkg /User/MyName/Desktop/helloWorld.pkg -target /
从上面的命令我得到这个
installer: invalid option -
Usage: installer [-help] [-dominfo] [-volinfo] [-pkginfo] [-allow] [-dumplog]
[-verbose | -verboseR] [-vers] [-config] [-plist]
[-file <pathToFile>] [-lang <ISOLanguageCode>] [-listiso]
[-showChoicesXML] [-applyChoiceChangesXML <pathToFile>]
[-showChoicesAfterApplyingChangesXML <pathtoFile>]
-pkg <pathToPackage>
-target <[DomainKey|MountPoint|DiskIdentifier|DeviceNode|UUID]>
我对@987654321@ 很陌生。这是什么意思,我该如何解决它,以便我可以按照 Apple 的建议安装应用程序?
【问题讨论】:
标签: cocoa macos terminal installation package