2015-04-07 40 views
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) 
+0

PS:我的應用程序是使用C++/Cocoa構建的,如果這有什麼區別的話。 – Ash

回答

0

好吧,我想通了。如果我將--identifier <unique identifier>添加到上面的pkgbuild命令中,它可以工作。