0
時,我有我的當前工作目錄(CWD)內的以下的目錄結構:PKGBUILD錯誤加入組分
MyAppBundle/MyApp.app
MyAppBundle.plist
MyAppBundle.plist包含以下內容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>BundleHasStrictIdentifier</key>
<true/>
<key>BundleIsRelocatable</key>
<true/>
<key>BundleIsVersionChecked</key>
<true/>
<key>BundleOverwriteAction</key>
<string>upgrade</string>
<key>RootRelativeBundlePath</key>
<string>MyApp.app</string>
</dict>
</array>
</plist>
當我運行從CWD以下命令:
pkgbuild --root ./MyAppBundle --component-plist 'MyAppBundle.plist' MyApp.pkg
...我得到以下輸出:
pkgbuild: Reading components from MyAppBundle.plist
pkgbuild: Adding component at MyApp.app
pkgbuild: error: (null)
PS:我的應用程序是使用C++/Cocoa構建的,如果這有什麼區別的話。 – Ash