Je rencontre actuellement un problème lors de l'importation de fichiers .ppt dans mon application iOS. Jusqu'à présent, chacun de ces UTI fonctionnent et me permettent d'importer leurs types de fichiers correspondants dans mon application. Cela inclut docx, doc, xslx, xsl, pptx. Le seul qui refuse de me laisser importer (l'icône de mon application ne s'affiche jamais) est .ppt.Impossible d'importer des fichiers .ppt dans mon application iOS
J'utilisé de l'infection urinaire du site officiel d'Apple et il ne fonctionne toujours pas: https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
Toutes les idées?
<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>
Avez-vous essayé de rechercher l'UTI pour votre fichier PPT sur la ligne de commande? Serait intéressant de savoir ce que les rapports UTI macOS. Vous pouvez le faire avec la commande suivante: 'mdls -name kMDItemContentTypeTree/path/to/file' –
Oui et c'est ici. kMDItemContentTypeTree = ( "com.microsoft.powerpoint.ppt", "public.data", "public.item", "public.presentation", "public.composite-content", « public. contenu " ) – lespommes