2011-06-12 111 views
5

Mac OS X應用程序Info.plist文件的外觀如何?我只需要最低限度,讓我有:創建應用程序plist

  • 啓動一個可執行
  • 都有一個圖標

謝謝!

回答

4

這是真實的,最低限度:

<?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"> 
<dict> 
    <key>CFBundleExecutable</key> 
    <string>ExecutableFileName</string> 
    <key>CFBundleIconFile</key> 
    <string>AppIcon</string> 
</dict> 
</plist> 

建議包括CFBundleIdentifier鍵也。這樣系統可以識別你的應用程序。我真的建議你加入它。


你可以在Information Property List Key Reference找到更多的鑰匙。

+0

謝謝!精確和簡潔,第一次工作。 – Lobotomik 2016-12-22 16:00:42