Skip navigation

iOS 6 File Type Association Issues

2241 Views 3 Replies Latest reply: Jul 13, 2013 5:13 AM by BlinkITVPP RSS
gsilis Calculating status...
Currently Being Moderated
Nov 8, 2012 6:34 AM

I've run into a problem that appears to be restricted just to iOS 6 devices -- iOS 5 seems to handle this situation well.

 

I'm building an application that exports JSON-formatted files with a custom extension via email, and should also be able to open the file attachment from within mobile mail using the "Open with" dialog. Basically just a way to send your app's settings to other users of the app via email. These are small files as well -- less than 200KB.

 

The problem I've run into is that even though my application name appears in the list of available applications to open the attachment, iOS 6 devices fail to open my application. In the device logs, the following gets reported:

 

     LaunchServices: Invalid LSOpenOperation request - No applications found to open document

 

I've been looking for anything online about this kind of issue, but haven't found any reference to that console output. I'm also positive that I've set up the Document Type and Exported UTI items correctly -- again this all works fine in iOS 5. I've included the values defined for the Document Type and UTI below:

 

Document Type

============

<key>CFBundleDocumentTypes</key>

         <array>

                 <dict>

                         <key>CFBuldlerTypeRole</key>

                         <string>Editor</string>

                         <key>CFBundleTypeExtensions</key>

                         <array>

                                 <string>exportedModel</string>

                         </array>

                         <key>CFBundleTypeIconFiles</key>

                         <array>

                                 <string>icon</string>

                         </array>

                         <key>CFBundleTypeName</key>

                         <string>Exported Model</string>

                         <key>LSHandlerRank</key>

                         <string>Owner</string>

                         <key>LSItemContentTypes</key>

                         <array>

                                 <string>com.company.applicationName.exportedModel</string>

                         </array>

                 </dict>

</array>

 

 

Exported UTI

==========

<key>UTExportedTypeDeclarations</key>

         <array>

    <dict>

      <key>UTTypeConformsTo</key>

      <array>

        <string>public.text</string>

      </array>

      <key>UTTypeDescription</key>

      <string>Exported Model</string>

      <key>UTTypeIdentifier</key>

      <string>com.company.applicationName.exportedModel</string>

      <key>UTTypeTagSpecification</key>

      <dict>

        <key>public.filename-extension</key>

        <string>exportedModel</string>

        <key>public.mime-type</key>

        <string>application/octet-stream</string>

      </dict>

                 </dict>

</array>

 

 

Has anyone else seen this kind of behavior in iOS 6? Could there be a cache of file type associations that is messing the "Open with" operation up?

iOS 6
  • appweavers Calculating status...
    Currently Being Moderated
    Apr 23, 2013 10:32 AM (in response to gsilis)

    Thanks for posting this. Have been tearing my hair out trying to figure why my app stopped launching. Definitely introduced in iOS 6. 

     

    Nigel

  • BlinkITVPP Calculating status...
    Currently Being Moderated
    Jul 13, 2013 5:13 AM (in response to gsilis)

    Hi! You have given me some hope - I have a very similar problem and too have been tearing my hair out. My app has stopped launching in iOS6 from an email attachment containing XML data, but of a user defined type .ftl. My application was launched in iOS 4 without any problems and I get the same:

     

    LaunchServices: Invalid LSOpenOperation request - No applications found to open document

     

    Error .... My .info file is also absolutely fine. Mate, how do you establish the MIME type of your email attachment?

     

    Regards,

     

     

    Lee


Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.