-
Re: App unable to import files in iOS13
sdsykes Jul 10, 2019 10:47 AM (in response to cfc)Did you get to the bottom of this? I also have an app that exports UTIs, but on iOS 13 when opening an appropriate url Safari uselessly offers to download the file rather than offering the usual "Open with" dialog.
It sounds like a similar problem.
-
Re: App unable to import files in iOS13
m_bedwell Jul 18, 2019 4:19 PM (in response to sdsykes)Same issue here. From all the documentation, I believe my exported types are correct. Opening a supported file from the 'Files' app launches my app, but my app doesn't appear in activity controllers, nor can I open files 'shared' through messeges, etc.
-
Re: App unable to import files in iOS13
cfc Jul 20, 2019 2:31 PM (in response to sdsykes)I haven't worked out a way around it yet but when I uploaded my last beta I did get a warning about LSHandlerRank needing to be set on my document types. I had it set for the GPX document type but not for a couple of other types, so maybe you cannot import any types if some of them do not have this key set?
It was only a warning and I haven't been able to test this theory because I didn't want to immediately release another beta with a new build number, so I won't be able to test the theory until my next beta. I will probably also set CFBundleTypeRole as well because that seems to be associated with LSHandlerRank.
Apologies if this is a red herring but I thought I would mention it in case it helps anyone else.
-
Re: App unable to import files in iOS13
sdsykes Jul 21, 2019 10:45 AM (in response to cfc)Doesn't seem to be LSHandlerRank or CFBundleTypeRole as I have those set already.
Still a mystery why this doesn't work, but am hoping it will be fixed (or at least some documentation on it) in a future beta of iOS13.
-
Re: App unable to import files in iOS13
m_bedwell Jul 22, 2019 7:14 AM (in response to sdsykes)I spend a code level support item on the issue. It’s a bug. The response I received was a request to file a bug report, I’d suggest the same.
-
Re: App unable to import files in iOS13
sdsykes Jul 25, 2019 12:29 PM (in response to m_bedwell)Thanks for the info, yeh, I thought it must be a bug so in the end I filed a bug report (a few days ago). Haven't heard anything back though.
-
-
-
-
-
Re: App unable to import files in iOS13
randomizer Jul 25, 2019 4:11 PM (in response to cfc)Are you sure it's not buried deep in the share window? There's a Manage ... on the bottom that hids a ton of stuff. It's really a lot more cluttered now despite having the redesign.
-
Re: App unable to import files in iOS13
m_bedwell Jul 25, 2019 5:34 PM (in response to randomizer)In my case, it's not a problem of being buried. My application can share things just fine. It can even be opened by those shared things... unless they are in iMessage. I'm comfortable with it being a bug, given that code level support couldn't find anything amiss with my code. I appreciate the offer of the assist though.
-
-
Re: App unable to import files in iOS13
cfc Aug 22, 2019 12:39 AM (in response to cfc)Has anyone found a way around this yet? I just tried beta 8 and it is still not working, so I am worried that it will not be fixed for the release.
-
Re: App unable to import files in iOS13
sdsykes Sep 2, 2019 12:31 AM (in response to cfc)My radar is marked with "Recent Similar Reports: More than 10" ... so we know they are aware of it at least.
-
Re: App unable to import files in iOS13
cfc Sep 2, 2019 2:56 AM (in response to sdsykes)Thanks for that. As is common I can't currently log in to Feedback Assistant to check the status of my radar but hopefully it shows the same.
Has anyone tried it on the iOS 13.1 beta yet? I have only got 1 test device, which used to be enough, but Apple seem to be going beta-crazy this year!
-
Re: App unable to import files in iOS13
patrick Sep 2, 2019 4:54 AM (in response to cfc)Also doesn't work on iOS 13.1 beta 1
-
Re: App unable to import files in iOS13
cfc Sep 2, 2019 7:29 AM (in response to patrick)That's a shame. Thanks for letting us know.
I have added a workaround to my app in the form of an Import button that displays an instance of UIDocumentPickerViewController. It isn't as good as being able to share a document to the app, but it does allow users a way to import documents that works on iOS 13.
-
Re: App unable to import files in iOS13
keeshux Sep 2, 2019 1:22 PM (in response to cfc)You know what? UIDocumentPickerViewController exhibits the very same behavior. All .ovpn files are disabled as long as OpenVPN Connect is installed together with my own app, which handles the same file extension. ****.
-
-
-
-
-
-
Re: App unable to import files in iOS13
cfc Sep 2, 2019 8:57 AM (in response to cfc)Someone on another thread (https://forums.developer.apple.com/thread/122170) has spotted that the existence of other apps that have registered an interest in the same type could be the cause. I uninstalled several such apps and suddenly my app appeared on the share list. I then reinstalled the apps and it is still on the share list.
It seems inconsistent, but maybe knowing this may help us to work out what is going wrong.
-
Re: App unable to import files in iOS13
keeshux Sep 2, 2019 9:30 AM (in response to cfc)Subscribing the thread for facing the same annoying issue. In the meantime I'll have to resort to the UIDocumentPickerViewController trick too (@cfc good call on this). More development time wasted to have a degraded app functionality.. and I foresee user complaints. Gosh, I'd better say nothing.
BTW I also filed a report a few days ago, but the bug has really been around since June. I had hoped that they could realize by themselves due to how blatant it is.
Let's strongly hope they don't release GM with such a shameful bug.
-
Re: App unable to import files in iOS13
keeshux Sep 2, 2019 10:15 AM (in response to cfc)Meta question: are you submitting your reports to the "Feedback Assistant"? Is the "FB"-prefixed ID supposed to be the radar ID? I still see looong IDs in openradar.
-
Re: App unable to import files in iOS13
cfc Sep 3, 2019 12:30 AM (in response to keeshux)I submitted my bug report using Feedback Assistant, although I haven't been able to login to it for several days. It always seems to be down at the moment. I wonder if that is why the iOS 13 beta is so bug-ridden: because the tool for reporting bugs is rarely working.
It is strange that such an obvious bug that was reported back in June hasn't been fixed in September, but maybe it isn't so obvious to Apple engineers. It seems to depend on what other apps are installed and they may do their testing on "clean" devices without other apps.
-
Re: App unable to import files in iOS13
keeshux Sep 3, 2019 9:33 AM (in response to cfc)So, I had to resort to the following to be 100% sure that users have a way to open their files:
<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>All files</string> <key>LSItemContentTypes</key> <array> <string>public.content</string> <string>public.data</string> </array> <key>LSHandlerRank</key> <string>Alternate</string> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> </array>
I also dropped any Imported/Exported UTIs (unused in this scenario). Interestingly, I'm unable to open .ovpn files (which are plain text) with public.text or public.plain-text.
Granted, it's bruteforce-like, but it's the only way I had my app appear consistently. The obvious downside is that the app is virtually able to open all files, but compared to a crippling bug it feels like minor cosmetics. Import would eventually fail so I don't really care much.
Hope this can help other developers.
Cheers
-
-
-
Re: App unable to import files in iOS13
cfc Sep 5, 2019 9:35 AM (in response to cfc)I just got an email from Apple saying that the issue is fixed in iOS13.1 beta 2, which is great but it sounds like it will be an issue for users using iOS 13. It will be interesting to see how soon after the iPhones are available that 13.1 will be available. Hopefully very soon if not immediately!
"As a result of your feedback, there are software changes in build 17A5831c that have resolved this issue. Has this issue been fixed for you?"
-
Re: App unable to import files in iOS13
pstoppani Sep 5, 2019 6:33 PM (in response to cfc)My app still does not show up in the Share list in 13.1 Beta 2
-
Re: App unable to import files in iOS13
cfc Sep 8, 2019 1:21 PM (in response to pstoppani)I have heard the same from some testers so it looks like it isn't fixed. Unfortunately Feedback Assistant is constantly down so I cannot tell them!
-
-
-
Re: App unable to import files in iOS13
StealthProd Sep 11, 2019 1:03 AM (in response to cfc)Does not seem to be fixed in beta 3
-
Re: App unable to import files in iOS13
pstoppani Sep 13, 2019 10:48 AM (in response to cfc)confirmed still not fixed in 13.1 beta 3. I've submitted feedback indicating that this is SHOWSTOPPER bug!
Also, it does not require another app to be registered for same UTI.
Interestingly, PDF files now seem to work. I get a list of PDF apps when I try to open a PDF attachment. Even AirDrop works with PDFs. Not with my files nor some others I've tried.
-
Re: App unable to import files in iOS13
8thDwarf Sep 15, 2019 1:34 AM (in response to cfc)Same here. Perhaps helpful: I have a ton of apps installed being able to handle GPX files, but none shows up via 'copy to'.
-
Re: App unable to import files in iOS13
skuehn Sep 18, 2019 7:32 AM (in response to cfc)We solved it by re-adding all the file definitions in our App-Info.plist file by using Apples documentation and the Xcode Project Editor (In Xcode click on the project item at the top of the file tree. Then click on the tab "Info".) We used for that an iPhone SE with the newest iOS 13 beta and Xcode 11 GM (11A420a).
The manual:
https://developer.apple.com/library/archive/qa/qa1587/_index.html
(See also the troubleshooting tips at the bottom.)
The result in the plist file looks like this:
...<key>CFBundleDocumentTypes</key><array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>KML File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>org.example.app.document.kml</string>
</array>
</dict>
</array>
...
<key>UTExportedTypeDeclarations</key><array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>KML File</string>
<key>UTTypeIconFiles</key>
<array/>
<key>UTTypeIdentifier</key>
<string>org.example.app.document.kml</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>kml</string>
</array>
</dict>
</dict>
</array>
...
-
Re: App unable to import files in iOS13
thund3r Sep 18, 2019 12:05 PM (in response to skuehn)Thanks for posting this. Adding "UTTypeConformsTo" is what I needed for my app to show up in sharing action sheets in iOS 13.
When Safari downloads one of my custom files in iOS 13, it no longer prompts if I want to open that file in my app like it used to. I hope that ability comes back since I'm not sure users will know to look at the downloaded file and then do a share action.
-
Re: App unable to import files in iOS13
AdvKern Oct 5, 2019 11:02 PM (in response to thund3r)Yes the Safari link is broken. My app really relies on that to download propriatery plugins from a webpage. They just went ahead and broken the whole functioanlity. What a shame. Some of the brightest minds around wasting their time on Apple's GUI churn, insted of creating something of value.
-
-
Re: App unable to import files in iOS13
8thDwarf Sep 19, 2019 8:12 AM (in response to skuehn)Is it possible, that this only works, when no other app is installed, that supports kml?
Tried the same solution for gpx and was not able to make it work with many other gpx-apps on the phone.
-
Re: App unable to import files in iOS13
skuehn Sep 20, 2019 12:05 AM (in response to 8thDwarf)I am not an export in this, but maybe you can try and play around with the values of LSHandlerRank and CFBundleTypeRole.
-
Re: App unable to import files in iOS13
8thDwarf Sep 20, 2019 1:11 AM (in response to skuehn)Thank you! But it doesn't seem to matter what I define there, to me, it looks like a topic of installation order.
Deleting all but one gpx-app make this last remaining app work fine to open the gpx files.
Every gpx-app I install from the store afterwards work well, too!
So, the problem are only apps installed before the iOS 13 update.
If there are older installations (other apps able to open gpx files), no matter how I define my .plist file, I cannot get it to work.
I have to delete all those other apps first.
-
Re: App unable to import files in iOS13
cfc Sep 20, 2019 12:02 PM (in response to 8thDwarf)I find the same: it is related to what other apps have registed the ability to read GPX files, and to the order in which they are installed.
-
-
-
-
-
Re: App unable to import files in iOS13
StealthProd Sep 22, 2019 6:05 PM (in response to cfc)Again, still not fixed in beta 4.
Looks like this is a big problem for many apps
-
Re: App unable to import files in iOS13
cfc Sep 23, 2019 5:51 AM (in response to StealthProd)My bug report for the issue says less than 10 people have reported it, so I am wondering if Apple do not actually realise how big the problem is because their systems are not correctly detecting that multiple reports are for the same bug. I guess it can be described in many ways.
Unfortunately iOS 13 is so buggy (the worst I can remember in over 10 years of iOS development) that bugs with so few reports are probably well down Apple's list of priorities.
-
-
Re: App unable to import files in iOS13
staninprague Sep 24, 2019 11:05 PM (in response to cfc)Public iOS 13.1 seems to have the same problem to me. I added bug to Apple as well on this.
-
Re: App unable to import files in iOS13
Uedich Sep 27, 2019 8:30 AM (in response to cfc)Hi there, managed to fix the problem for me.
Adding public.data value to the UTTypeConformsTo key did the trick.
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
-
Re: App unable to import files in iOS13
8thDwarf Sep 27, 2019 4:12 AM (in response to Uedich)This works fine, when you install the app on iOS 13.
But when you do on iOS 12, then update iOS 13 it won't. I fear, even an update of an already installed app won't help.
As established earlier, this is only the case when other apps are present that support this file import, too.
-
Re: App unable to import files in iOS13
Uedich Sep 27, 2019 8:34 AM (in response to 8thDwarf)That's right of course. You must provide an update that contains the key in the App's Info.plist. Any update is a new installation.
So what you mean is: if you install the update providing the key on iOS12 and do the upgrade to iOS13, it mechanism won't work either?
Weird...
-
-
-
Re: App unable to import files in iOS13
filip32 Sep 27, 2019 7:51 AM (in response to cfc)I managed to get the app displayed in the share menu, but after I select that option, my app isn't opened nor it produces any error, I'm just redirected to the home screen.
This is even worse.
-
Re: App unable to import files in iOS13
eddieh48 Sep 28, 2019 6:19 AM (in response to cfc)No joy with 13.1.1
-
Re: App unable to import files in iOS13
85thedenial Sep 29, 2019 1:28 AM (in response to cfc)Same here, this is the situation:
Safari click on file (es. mail attachment):
IOS 12: straight to open file screen
IOS 13: downloads the file somewhere, interface is not clear, but when you figure out and find where to click you proceed to open file screen
Safari open file:
IOS 12: display screen with my custom UTI Type name and "open file with MyApp" button, on click opens the app correctly
IOS 13: display screen with the description of my custom UTI Type name, no buttons, look like it's broken. Need to look at the top for the share icon
Share dialog:
IOS 12: no problem
IOS 13: need to add (that i already had), i have a custom file, so no concurrent apps
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
On "Copy to MyApp" click
IOS 12: Opens app at the proper screen with file loaded
IOS 13: Safari crashes, doesn't open the app, scroll to the frist ios screen
Looks like a fail on every side, how can this have been missed? or is there a documentation to apply the proper fixes?
The UX on IOS13 (even if it worked) is a 10 years step back in user experience on the import flow, i hope it's not intended.
-
Re: App unable to import files in iOS13
rohirrim Sep 29, 2019 10:11 AM (in response to cfc)I seem to have finally got it to work with iOS 13.1.1 by setting LSSupportsOpeningDocumentsInPlace to false - there's other apps installed on my device that can handle the same file but my app pops up in the share sheet and can open the file.
-
Re: App unable to import files in iOS13
eddieh48 Sep 30, 2019 8:51 AM (in response to rohirrim)That didn't work for me. I already had it set to false.
-
-
Re: App unable to import files in iOS13
cfc Sep 30, 2019 9:26 AM (in response to cfc)The problem with knowing if any specific change fixes the problem is that just the act of installing can solve the problem. The order of installation/uninstallation seems to be a factor. I have had several users re-install other apps that register an interest in GPX files and suddenly my app appears on the share list, despite them having made no changes to it at all.
I have also had users for whom it was working with iOS 13.1 but then it broke when they installed iOS 13.1.1. It seems almost random but is triggered or fixed by the installation of a new iOS, or the install or uninstall of other apps that register interest in the same file type.
I am also now having problems with my workaround of showing a UIDocumentPickerViewController to allow files to be specifically imported. It seemed to work with iOS 13.0 (or at least no-one complained) but sometimes does not work since iOS 13.1 was released. Strangely it still does work for some users for whom the sharing mechanism is not working. So it helps some users but not others.
I had set the document type for this import controller to be kUTTypeXML but for some people this will not allow any files to be selected for the affected users. I will try making it kUTTypeData in the next version to see if that helps, although I would prefer not to make every data file selectable.
-
Re: App unable to import files in iOS13
musebook Sep 30, 2019 10:18 AM (in response to cfc)iPad Air 2 with iOS 13 does not show my apps in open-in list or AirDrop list
I've asked similar question and answered by myself so that please check the above thread.
I hope this may help you.
-
-
Re: App unable to import files in iOS13
eddieh48 Oct 1, 2019 10:56 AM (in response to cfc)iOS 13.1.2 still no joy.
-
Re: App unable to import files in iOS13
Alex.Chou9 Oct 2, 2019 11:19 PM (in response to cfc)when will they fix this issue on iOS13? "Uninstalling all but one of the apps that can import GPX" works, but it is not elegant....
-
Re: App unable to import files in iOS13
eddieh48 Oct 3, 2019 1:31 AM (in response to cfc)iPhone Beta13.2 - nope.
-
Re: App unable to import files in iOS13
StealthProd Oct 6, 2019 12:28 AM (in response to eddieh48)Same, need this to work again as it did previous. Apple regration testing and backward compatibility lacking?
-
-
Re: App unable to import files in iOS13
LeadNav Oct 3, 2019 10:13 PM (in response to cfc)We are waiting on a response on this issue as we too import gpx and MBTile. Hopefully this gets resolved soon. From what we see it is totally random in that we can delete and reinstall the app and get different results. Sometimes we will show up as an import option, sometimes we won’t but if imported into Files first then sometimes we will show up in there and sometimes not. Only work around we found is to compress (.zip) the file then we show up and it can be imported. From the looks of it a fair number of gps apps are having this issue as I have them loaded and they no longer show up as an option. We’re not alone Apple. Kill this bug! Damian LEADNAV GPS
-
Re: App unable to import files in iOS13
staninprague Oct 4, 2019 2:03 AM (in response to LeadNav)Hi Damian, Stan here, Speedometer 55 developer, you can try with my most recent pro version and if import works for you (sqlitedb, mbtiles, gpx) when Leadnav fails, I'll share my solution with you. Would hate to see this Apple's total failure as a competitive factor for some apps. Per response from Apple that I got for my bug report on this with providing a link to this thread, I'd say we might not be sure we will have it fixed soon. We need to fix it ourselves.
But even if we fix it ourselves, still the problem is that you can't export from your app to the affected apps while users are of course seeing this problem as your app's problem. But that's another side of this problem.
-
Re: App unable to import files in iOS13
LeadNav Oct 8, 2019 6:24 PM (in response to staninprague)Apples response We understand that you are having issues with your type definition for .gpx files. At this time, there is no commonly-accepted Uniform Type Identifier for .gpx files and different developers have defined their .gpx declaration differently. This means that if two apps are installed on the same device that claim to open these files with different definitions, they won't interact correctly: from the user's point of view, only one of those apps, chosen seemingly at random, will be able to open these files. Our understanding is that this format was designed by Topografix, so our current recommendation is that you redeclare support for .gpx files in your app by adding a type declaration for com.topografix.gpx that conforms to public.data and has the filename extension tag gpx. An example declaration is shown here: UTImportedTypeDeclarationsUTTypeIdentifiercom.topografix.gpxUTTypeReferenceURLhttps://www.topografix.com/gpx.aspUTTypeConformsTopublic.dataUTTypeTagSpecificationpublic.filename-extensiongpx Apple does not generally declare Uniform Type Identifiers for file types the operating system does not natively support, so this is a change that you will need to make. If you and other developers standardize on this Uniform Type Identifier, users on iOS 13 should see these apps appear in UIActivityViewController and other relevant UI locations. Such a change will also benefit users still running iOS 12 and earlier if they have multiple apps installed that can handle this file format. For more information about declaring Uniform Type Identifiers, see our documentation here: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html While making this change in your app will not immediately fix the problem, it is a step in the right direction as other developers adopt this UTI.
-
Re: App unable to import files in iOS13
baia Oct 30, 2019 1:42 PM (in response to LeadNav)"While making this change in your app will not immediately fix the problem, it is a step in the right direction as other developers adopt this UTI."
Realistically this is never going to work - there's always going to be apps that don't do this. This change in iOS13 has broken a core feature in many apps in a way that developers are unable to fix.
As per @baraupp, is everyone filing FB's on this?
-
Re: App unable to import files in iOS13
staninprague Nov 4, 2019 3:37 AM (in response to baia)I filed FB long time ago and didn't get as thourough response as LeadNav, just "Fix it yourself" resolution. But are you still having a problem? I have not had a single customer complaint since I've merged a range of suggestions in this thread together for my apps. Given response that LeadNav has got, it all makes some weird sense. I use "All files":
<dict>
<key>CFBundleTypeName</key>
<string>All files</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.content</string>
<string>public.data</string>
</array>
</dict>
As the last entry in document types. Above this I have the following for kmz:
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>KMZ Google Earth</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).kmz</string>
<string>public.archive</string>
<string>public.data</string>
</array>
</dict>
Then I have the following for the kmz in the Exported UTIs:
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.archive</string>
</array>
<key>UTTypeDescription</key>
<string>KMZ Google Earth</string>
<key>UTTypeIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER).kmz</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>kmz</string>
<string>KMZ</string>
</array>
</dict>
</dict>
I have no intent to be adding anything for GPX right now, but I think I could do it in the same way as it is done for kmz. The only benefit that I'd see from adding GPX would be gpx file icons being my app icon sometimes?
I tested this with my own apps (compass 55, speedometer 55, planimeter 55) and they were never competing on any types (I do declare explicitely .sqlitedb, .mbtiles, .kmz and my own .trk) and I think they are not breaking other apps as well.
This led me to having no imported types. Will I need to agree with 1 million devs to have working imported types again? Per Apple's response to LeadNav, yes?
My understanding of this is that for the imported types, instead of merging info from different devs on it, Apple simply overrwites it in iOS 13? Imported types are not owned by the app. Next app comes and becomes the "master" over this imported UTI. If both matched perfectly on UTI there would no conflict?
Exported types are owned by the app. Looks to me that Apple still continues to merge information from the Exported UTIs in iOS 13.
I might be very wrong with my understanding, I hope not, but let me share it here in hope that someone wiser may comment. The solution seems to work, and while not being perfect, I can't suggest my customers to delete other apps (and which ones)? I believe this solution breaks nothing in fellow dev apps and makes my apps immune. I don't think that Apple is right with their new approach to the imported UTIs in iOS 13.
-
-
-
-
-
Re: App unable to import files in iOS13
baraupp Oct 4, 2019 4:13 AM (in response to cfc)The problem is still present for me on iOS 13.1.2. My app has support for 5 different file types. Some work fine, others don't show up in the menu, even though all are specified in similar ways in the info.plist. For GPX files, if you open the file from Mail, then the app does not show up in the menu, but numerous other apps do. But if you transfer the file through AirDrop, then I don't get a menu at all. Instead, a popup comes up saying that "This file type needs an app from the App Store".
I have logged a bug report as well. I strongly suggest everybody to do so, to put pressure on Apple to fix this. This is a major, major bug which disables important functionality in apps.
-
Re: App unable to import files in iOS13
radubc Oct 5, 2019 7:19 AM (in response to cfc)I had the same issue with my app, not released yet. My mistake was that I registered the gpx type as my own. For the Types property, I had "com.myappname.gpx". Same for Identifier. This told IOS that I have invented the gpx format and it should be registered as my app's. That was completely wrong.
In fact, the gpx is an xml format. So, for me, the solution was to set the "Types" property to public.xml and the "Conforms To" property to public.text. Now my app appears in the Share menu, as Copy to AppName, and the gpx file opens properly. My app is kind of hidden under the More button, but it's there. After setting it as favorite, it's on the first page, but that's the user preference.
In my rookie mind, that would explain why everything depends on the order of installation of the apps. If all the apps register themselves as the creator of the format, the app that was installed last will work, while the others will not. If we all register our apps as opening public formats, the isuue would disappear. In theory. Not tested enough.
-
Re: App unable to import files in iOS13
eddieh48 Oct 6, 2019 5:42 AM (in response to radubc)All of my export files are .plist. I changed the "Types" to public.plist and "Conforms To" property to public.text but this still doesn't work for me.
I had also upgraded to 13.2 but then had to downgrade to 13.1.2 as Xcode would no longer load files onto my device giving me the message that I needed to upgrade to the latest version of Xcode.
-
Re: App unable to import files in iOS13
baraupp Dec 6, 2019 7:07 AM (in response to radubc)None of the file formats that my app supports are registered as my own, and never have been. I still have problems with opening 3 out of the 5 file types. So, no, that is not the underlying cause of the problem.
-
-
Re: App unable to import files in iOS13
StealthProd Oct 6, 2019 2:34 AM (in response to cfc)iOS13.2 and xcode 11.2 still not working
-
Re: App unable to import files in iOS13
eddieh48 Oct 6, 2019 2:41 PM (in response to cfc)This is how I got it to work for me. For the file type I just made an abitrary extension to the file I was saving as an email attachment: filename.anyuniqueextension
Under Document Types I left the default value of "Damian-s.${PRODUCT_NAME:rfc1034identifier}"
Then under "UTTypeTagSpecification" change Item 0 to "anyuniqueextension"
Make sure in your app that you read and write the file extension with "anyuniqueextension"
All of my file types are .plist.
-
Re: App unable to import files in iOS13
StealthProd Oct 7, 2019 1:21 AM (in response to eddieh48)Did you add these or where they already there? I only have Document Types, I don't see UITypeTage Specification anywhere. Can you provide more detail
-
Re: App unable to import files in iOS13
eddieh48 Oct 7, 2019 6:26 AM (in response to StealthProd)I replaced the types that were there.
It would be easiest to show an image but since images aren't allowed here, this is the text from the .plist file in the app:
The UITypeTage is in the UTExportedTypeDeclarations.
The extension to the email data file is "visionPF". This is added to the file name in the app when creating the email attachment.
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string> blah blah blah path to icon image </string>
<string>VisionEmailIcon.png</string>
</array>
<key>CFBundleTypeName</key>
<string>VisionFliteSettings File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>Damian-s.${PRODUCT_NAME:rfc1034identifier}</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>VisionFliteSettings File</string>
<key>UTTypeIconFiles</key>
<array>
<string>VisionEmailIcon.png</string>
</array>
<key>UTTypeIdentifier</key>
<string>Damian-s.${PRODUCT_NAME:rfc1034identifier}</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>visionPF</string>
</array>
</dict>
</dict>
</array>
-
-
-
Re: App unable to import files in iOS13
Petr Hoffman Oct 8, 2019 2:36 AM (in response to cfc)I've solved this in may app by replacing custom UTIs with system defined ones. I used them in Info.plist in the "Document types" section and removed all exported UTIs. Now my app is back in the list of available apps.
You can get UTI for a file by using this command in Terminal (God bless Wikipedia :-)):
mdls -name kMDItemContentType -name kMDItemContentTypeTree -name kMDItemKind FILE
For GPX files the UTI is "com.apple.dt.document.gpx". Corresponing record in Info.plist should look like this:
<dict> <key>CFBundleTypeIconFiles</key> <array/> <key>CFBundleTypeName</key> <string>GPX record</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSHandlerRank</key> <string>Owner</string> <key>LSItemContentTypes</key> <array> <string>com.apple.dt.document.gpx</string> </array> </dict>
-
Re: App unable to import files in iOS13
eddieh48 Oct 9, 2019 2:49 AM (in response to Petr Hoffman)Works perfect. Thanks for that elegant solution.
UTI for a .plist file:
com.apple.property-list
-
Re: App unable to import files in iOS13
cfc Oct 9, 2019 4:13 AM (in response to Petr Hoffman)Thanks for that. I can't tell if it works for me yet because I wasn't having the problem - many of the users of my app were seeing it, but not me. I will use that UTI in my next beta and see what the beta testers say.
-
Re: App unable to import files in iOS13
parrots Oct 11, 2019 4:08 PM (in response to cfc)Worked for me too. I worry if this is just a temporary fix, though?
-
-
Re: App unable to import files in iOS13
eddieh48 Oct 9, 2019 7:23 AM (in response to Petr Hoffman)For zip files: com.pkware.zip-archive
For gpx file: com.apple.dt.document.gpx
- still doesn't work. (no file icon either)
-
Re: App unable to import files in iOS13
eddieh48 Oct 9, 2019 7:59 AM (in response to Petr Hoffman)Apparently there isn't a UTI for a file of type text - .txt
-
Re: App unable to import files in iOS13
Petr Hoffman Oct 9, 2019 11:41 PM (in response to eddieh48)Plain text files works in my app with UTI "public.plain-text"
-
-
Re: App unable to import files in iOS13
8thDwarf Oct 24, 2019 1:05 AM (in response to Petr Hoffman)I tried you solution for GPX, but it only works directly after installing. when installing another app able to open GPX files, my app disappears from the list again - just as it did before.
This was reproducable on all iOS 13 test devices.
I filed a bug report, too, but no repsonse so far.
-
-
Re: App unable to import files in iOS13
kkip Oct 11, 2019 11:03 AM (in response to cfc)I finally solved this problem for custom UTIs. First a little background. Our apps have two or three custom file types. They have been in the apps for at least five years and have always worked fine. After upgrading to iOS 13, users could no longer import their files from any source.
After trying many suggestions in this thread, I finally decided to delete the entire "Exported Type UTIs" and "Imported Type UTIs" keys from the info.plist for each app. Note that I used the property list view for all changes, not the source view. Next, I went to the target info tab and created new Exported UTIs and Imported UTIs. The identifier for each UTI was the same as before, which was the reverse company domain and the custom file extention (com.company.ext). The "conforms to" field was set to "public.data" for all. In the "additional properties" area, I added the UTTypeTagSpecification key as a dictionary and added the "public.filename-extension" key as an array. In the array I added one item which was the file extention.
UTTypeTagSpecification Dictionary
public.filename-extension Array
Item 0 String ext
Prior to these changes, I was working with the plist source to try to solve this problem. But apparently using the property gui editor changed the plist source in a way that resolved the problem. I only did a quick compare of the old file and the new and didn't see anything obvious.
Also, note that I did not make any changes to the Document Types.
-
Re: App unable to import files in iOS13
zenith10 Oct 16, 2019 7:35 PM (in response to kkip)DUDE!!!! You just saved me! Finally a fix!
-
Re: App unable to import files in iOS13
85thedenial Nov 2, 2019 3:14 AM (in response to kkip)Sadly that didn't work for me, still redirected to the home page of IOs, ans Safare crash, also tried added public.file-extension to the additional array but to no avail.
I created an entry on StackOverflow for the crash on import file thread of this topic.
https://stackoverflow.com/questions/58670089/unable-to-import-files-with-custom-uti-extension-on-ios-13 -
Re: App unable to import files in iOS13
jeffb6688 Nov 2, 2019 1:57 PM (in response to kkip)Unfortunately, this does not work for me either. Did you do anything else beyond the deletion and reentry of the Exported Type UTI's? For me, I have a .csv file. So I have 2 UTTypeTagSpecification:
public.mime-type string application/myAppName
public.filename-extension Array
Item 0 String csv
Did you include a public.mime-type?
After adding this, I just restarted my app in XCode. But my app does not show up in the share menu as one of the apps to share to.
-
-
Re: App unable to import files in iOS13
fkdev Oct 27, 2019 3:37 AM (in response to cfc)Is there a way to reproduce the issue reliably.
I mean make a working device have the bug.
Because a lot of solutions seem to come down to the reinstalling step updating the system list until another app update make it fails again.
-
Re: App unable to import files in iOS13
ystsoi Nov 7, 2019 7:30 AM (in response to fkdev)Suppose GPXApp1 has an Imported UTI and Document Type defined as in:
https://stackoverflow.com/questions/31163785/trying-to-define-gpx-document-type-in-xcode-6-4
I found that there are at least two ways which can cause problems:
1) Clear the Conforms To field, then the app will not show up in the list.
2) Create another app GPXApp2 with the same Imported UTI and Document Type, except changing the Identifier and Types to a different value, say com.topografix.gpx2. Then at least one of the apps will not show up in the list.
I found that one solution is to add public.xml to the LSItemContentTypes array. Then both apps can show up in the list. The side effect is that they will also show up in the list for XML files. Probably, it is safer to add public.data instead, but I found that the only case for public.xml to fail is when both apps set the Conforms To field to public.data.
-
-
Re: App unable to import files in iOS13
vertrider Nov 2, 2019 2:22 PM (in response to cfc)Hi, I have had this problem exporting GPX files from Gaia to Outdooractive up to 13.2. OA would not show up in the list of suggested apps. So I deleted a lot of apps that had shown up instead: Threema, Telegram, LinkedIn, DropBox, Google Drive, Komoot, Motion Control X GPS, ... Now I have only three GPS apps (which create GPX filed and can import them). Gaia, Outdooractive, Alpenvereinaktiv. Cheers
-
Re: App unable to import files in iOS13
8thDwarf Nov 4, 2019 12:10 AM (in response to cfc)Many users report, importing GPX-files works again with iOS 13.2 - exactly like it was with iOS 12! To me, it feels like it's the majority.
BUT there are other users with 13.2 still having the same issues. Can anybody confirm this?
-
Re: App unable to import files in iOS13
Sachin.yadav Nov 5, 2019 2:16 AM (in response to 8thDwarf)Same isssue with xcode 11.2 and on ios 13.2
-
Re: App unable to import files in iOS13
georgbachmann Nov 18, 2019 10:12 AM (in response to 8thDwarf)For our app it's still not working for all users.
We tried hunderts of variations of our Document Types and Imported UTIs ... no change...
-
-
Re: App unable to import files in iOS13
Sachin.yadav Nov 5, 2019 3:21 AM (in response to cfc)I fixed this by adjusting some settings in the app's Info.plist.
I switched
UISupportsDocumentBrowser
tofalse
, and addedLSSupportsOpeningDocumentsInPlace
, also set tofalse
.-
Re: App unable to import files in iOS13
85thedenial Nov 6, 2019 1:51 PM (in response to Sachin.yadav)Still no success, the error get from safari is:
"MobileSafari quit unexpectedly."
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
terminating with uncaught exception of type NSException
Here is the full log of the error... https://drive.google.com/file/d/1sfW6-sfC2uj4jlFEKY1BpzLWyL5YKFe7/view
-
-
Re: App unable to import files in iOS13
georgbachmann Nov 18, 2019 10:14 AM (in response to cfc)I would be super happy if somebody has a working config and could post it here.
Are you guys using the Document Types? Or the Imported UTIs?
For me it was working for a while, but now with no change to my code it's not working any more.
And what's also super strange. Even the filepicker is not displaying gpx files correctly.
UIDocumentPickerViewController(documentTypes: ["public.xml", "com.topografix.gpx"], in: .import)
This used to properly highlight all gpx files for me. Now it's not any more.
Our users are really frustrated but we have no idea how to solve the problem.So any hint on how you guys got it working is extremly appreciated!!!
-
Re: App unable to import files in iOS13
ystsoi Nov 18, 2019 9:50 PM (in response to georgbachmann)For import from the Files app, I use the following config:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>GPS Exchange Format (GPX)</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.topografix.gpx</string>
<string>public.xml</string>
</array>
</dict>
</array>
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.xml</string>
</array>
<key>UTTypeDescription</key>
<string>GPS Exchange Format (GPX)</string>
<key>UTTypeIconFiles</key>
<array/>
<key>UTTypeIdentifier</key>
<string>com.topografix.gpx</string>
<key>UTTypeReferenceURL</key>
<string>http://www.topografix.com/GPX/1/1</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>gpx</string>
<key>public.mime-type</key>
<string>application/gpx+xml</string>
</dict>
</dict>
</array>
The side effect is that the app will show up for other XML files too, but no good solution until Apple fixes the issue. See whether it works in your environment.
And I do not use UIDocumentPickerViewController, so no idea about it.
-
Re: App unable to import files in iOS13
baraupp Dec 6, 2019 7:24 AM (in response to georgbachmann)There is no config that is guaranteed to work. One of the other users reported the following feedback from Apple on the issue:
"We understand that you are having issues with your type definition for .gpx files. At this time, there is no commonly-accepted Uniform Type Identifier for .gpx files and different developers have defined their .gpx declaration differently. This means that if two apps are installed on the same device that claim to open these files with different definitions, they won't interact correctly: from the user's point of view, only one of those apps, chosen seemingly at random, will be able to open these files."
That is, if there are two or more apps that have given different Uniform Type Identifiers for the same file extension, then only some of them will appear, choosen at random.
-
-
Re: App unable to import files in iOS13
I2econsulting Dec 2, 2019 1:43 AM (in response to cfc)I was facing a similar issue. My app wasn't being shown in the list of apps to open the XML attachment from the mail app. I used this code in info.plist and it worked for me:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>XML File</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>public.XML</string>
</array>
<key>CFBundleTypeIconFiles</key>
<array>
<string>Sandbox-icon.png</string>
</array>
</dict>
</array>Refer: http://iosdevelopertips.com/core-services/how-to-register-file-types-supported-by-an-ios-app.html