在检查了几个问题后,遵循了许多在线教程,我仍然无法让我的应用程序注册我的 mime 类型。我觉得这里一定有一些我还没有意识到的魔法。除了修改我的 plist 文件之外还有其他步骤吗?还是我做错了?
我唯一觉得可能是一个额外的问题是我已经更改了我的项目名称,并且可能有一些不符合构建设置和/或配置文件的东西?它存档,我可以安装用于临时分发,我只是无法在电子邮件中获取文件来注册该应用程序。
该文件是我使用 NSJSONSerialization 准备的 JSON 数据。
这是我的清单:
<?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>CFBundleDisplayName</key>
<string>ClickDesigner</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Clicker Data Document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.digitaldownbeat.clicker.clk</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>icon.png</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string></string>
<string>icon.png</string>
<string>icon@2x.png</string>
</array>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.digitaldownbeat.${PRODUCT_NAME}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Clicker</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>db-k6rrg6wgwv4uij1</string>
</array>
</dict>
<dict>
<key>CFBundleURLName</key>
<string>com.digitaldownbeat.clickdesigner</string>
<key>CFBundleURLSchemes</key>
<array>
<string>clickdesigner</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>LSRequiresiPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UIFileSharingEnabled</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackTranslucent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.text</string>
</array>
<key>UTTypeDescription</key>
<string>ClickDesigner Data Document</string>
<key>UTTypeIdentifier</key>
<string>com.digitaldownbeat.clickdesigner.clk</string>
<key>public.filename-extension</key>
<string>clk</string>
<key>public.mime-type</key>
<string>application/clickdesigner</string>
</dict>
</array>
</dict>
</plist>
感谢您的任何帮助,您可以提供。