我在這裏有一個比較簡單的。我正在捆綁生活在我的應用程序的資源文件夾中(可能還有應用程序支持文件夾中)。這些軟件包將包含應用程序處理的數據的模板信息。我已經構建了一個包,擴展名爲「booksprintstyle」,目錄結構符合規範。我有一個Info.plist全部設置,我想我已經填寫了我需要的所有值。我是否需要在我的應用程序中更改某些內容以將這些文件夾與擴展名識別爲捆綁文件,或者我在我的捆綁結構中缺少某些內容?我注意到一些bundle有一個名爲PkgInfo的文件;這很重要嗎?創建一個包 - 出了什麼問題?
以下是我的包中的Info.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">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>1.0, Copyright © 2009 Joey Lange</string>
<key>CFBundleIdentifier</key>
<string>net.atherial.books.exporter.printingpress.printstyle</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Books Print Style - Generic</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleDisplayName</key>
<string>Books Print Style - Generic</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2009 Joey Lange</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>