[ad_1]
My app is caught at iOS 13 in the interim, and I can not get the UIDocumentPickerViewController solely to permit the number of binary recordsdata.
That is what I am placing into my data.plist
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>public.firmware</string>
<key>UTTypeDescription</key>
<string>Firmware Binary</string>
<key>UTTypeIconFile</key>
<string></string>
<key>UTTypeConformsTo</key>
<array>
<string>public.information</string>
</array>
<key>UTTypeIconFiles</key>
<array/>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>bin</string>
</array>
<key>public.mime-type</key>
<string>utility/octet-stream</string>
</dict>
</dict>
</array>
This is what I am hooking as much as a button upon choice
let vc = UIDocumentPickerViewController(documentTypes: ["public.firmware"], in: .import)
vc.delegate = self
self.current(vc, animated: true)
I would use UTType nevertheless it’s not accessible in iOS 13. Additionally, I am unsure if I am utilizing the right mime-type. I selected octet-stream from this record https://developer.mozilla.org/en-US/docs/Net/HTTP/Basics_of_HTTP/MIME_types/Common_types
[ad_2]
