ここには比較的単純なものがあります。アプリケーションの Resources フォルダー内 (および場合によっては Application Support フォルダー内) にバンドルを配置しています。これらのバンドルには、アプリケーションが処理するデータのテンプレート情報が含まれます。拡張子が「booksprintstyle」のバンドルを作成しました。ディレクトリ構造は仕様どおりです。Info.plist がすべて設定されており、必要なすべての値を入力したと思います。これらの拡張子付きのフォルダーをバンドル ファイルとして認識させるには、アプリで何かを変更する必要がありますか? それとも、バンドル構造に何かが欠けていますか? 一部のバンドルには 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>