我有一个名为:“测试结果”的项目。它生成一个可执行的“测试结果”。如果我尝试将我的 info.plist 文件设置为与通过邮件接收的文件相关联,则邮件程序无法识别它。这是我的 info.plist:
CFBundleDevelopmentRegion
en
CFBundleDisplayName
${PRODUCT_NAME}
CFBundleDocumentTypes
CFBundleTypeIconFiles
Sandbox-icon.png
CFBundleTypeName
dep
CFBundleTypeRole
Viewer
LSHandlerRank
Default
LSItemContentTypes
araferna.${EXECUTABLE_NAME}.dep
CFBundleExecutable
${EXECUTABLE_NAME}
CFBundleIdentifier
araferna.${PRODUCT_NAME:rfc1034identifier}
CFBundleInfoDictionaryVersion
6.0
CFBundleName
${PRODUCT_NAME}
CFBundlePackageType
APPL
CFBundleShortVersionString
1.0
CFBundleSignature
????
CFBundleVersion
1.0
LSRequiresIPhoneOS
<true/>
UIRequiredDeviceCapabilities
armv7
UISupportedInterfaceOrientations
UIInterfaceOrientationPortrait
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
UTExportedTypeDeclarations
UTTypeConformsTo
public.data
UTTypeDescription
Testing Results Document
UTTypeIdentifier
araferna.${EXECUTABLE_NAME}.dep
UTTypeTagSpecification
public.filename-extension
dep
public.mime-type
application/${EXECUTABLE_NAME}
我有另一个具有相同内容和相同 info.list 的项目,只是我将其称为“测试”并且效果很好。我猜该关联不需要带有“”(空格)的长文件名。谢谢