0
현재 내 iOS 앱에 파일 .ppt 개를 가져 오는 중에 문제가 있습니다. 지금까지이 UTI 중 하나 하나가 작동 중이며 해당 파일 유형을 내 앱으로 가져올 수 있습니다. 여기에는 docx, doc, xslx, xsl, pptx가 포함됩니다. 가져 오기를 거부하는 유일한 앱 (앱의 아이콘이 표시되지 않음)은 .ppt입니다. .ppt 파일을 내 iOS 앱에 가져올 수 없습니다.
가 나는 요로 감염의 애플의 공식 사이트에서 사용하고 그것은 여전히 작동하지 않습니다 https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html어떤 아이디어?
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>My Document File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.word.doc</string>
<string>com.microsoft.word.wordml</string>
<string>org.openxmlformats.wordprocessingml.document</string>
<string>com.microsoft.excel.xls</string>
<string>org.openxmlformats.spreadsheetml.sheet</string>
<string>com.microsoft.powerpoint.ppt</string>
<string>org.openxmlformats.presentationml.presentation</string>
<string>com.adobe.pdf</string>
<string>com.microsoft.bmp</string>
<string>public.jpeg</string>
<string>public.png</string>
<string>public.tiff</string>
<string>com.compuserve.gif</string>
</array>
</dict>
</array>
명령 줄에서 PPT 파일의 UTI를 찾으려고 했습니까? UTI macOS가 무엇을보고 있는지에 대해 흥미로울 것입니다. 다음 명령을 사용하여이 작업을 수행 할 수 있습니다 :'mdls -name kMDItemContentTypeTree/path/to/file' –
예, 여기 있습니다. kMDItemContentTypeTree = ( "com.microsoft.powerpoint.ppt" "public.data" "public.item" "public.presentation" "public.composite 콘텐츠" "공용. 콘텐츠 " ) – lespommes