iOS Question Problem with LSSupportsOpeningDocumentsInPlace ?

D

Deleted member 103

Guest
Hi,

Until recently I used this setting.
B4X:
#PlistExtra:<key>LSSupportsOpeningDocumentsInPlace</key><true/>

Now I wanted to do an app update and it no longer works, I have to set it this way now.
B4X:
#PlistExtra:<key>LSSupportsOpeningDocumentsInPlace</key><false/>

This is the error message when I set the setting to "True":
Application_Start
Application_Active
Application_Inactive
Application_Background
*** Assertion failure in -[UIApplication _applicationOpenURLAction:payload:eek:rigin:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3698.140/UIApplication.m:6857
Error occurred on line: 2247 (Main)
Application has LSSupportsOpeningDocumentsInPlace key, but doesn't implement application:eek:penURL:eek:ptions: on delegate <B4IAppDelegate: 0x283a33a40>
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Foundation <redacted> + 112
UIKitCore <redacted> + 1240
UIKitCore <redacted> + 580
UIKitCore <redacted> + 5204
UIKitCore <redacted> + 2276
UIKitCore <redacted> + 744
UIKitCore <redacted> + 428
UIKitCore <redacted> + 220
UIKitCore _performActionsWithDelayForTransitionContext + 112
UIKitCore <redacted> + 244
UIKitCore <redacted> + 360
UIKitCore <redacted> + 464
FrontBoardServices <redacted> + 224
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 224
FrontBoardServices <redacted> + 40
FrontBoardServices <redacted> + 408
FrontBoardServices <redacted> + 52
CoreFoundation <redacted> + 24
CoreFoundation <redacted> + 88
CoreFoundation <redacted> + 176
CoreFoundation <redacted> + 1004
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
MoR main + 128
libdyld.dylib <redacted> + 4
)
SignalHandler 6


Is that normal?
 
D

Deleted member 103

Guest
Strange, on my iPhone 6+ with iOS 12.4.8 it works without problems, but not on my iPhone X with iOS 13.5.1.

Who understands Apple? :rolleyes:
 
Upvote 0
D

Deleted member 103

Guest
I use this setting in my app:
B4X:
    #PlistExtra:<key>LSSupportsOpeningDocumentsInPlace</key><false/>
    
    '####### Associating my app's custom file in iOS #############
    #PlistExtra:<key>CFBundleDocumentTypes</key>
    #PlistExtra: <array>
    #PlistExtra:     <dict>
    #PlistExtra:         <key>CFBundleTypeName</key>
    #PlistExtra:         <string>Race File</string>
    #PlistExtra:         <key>CFBundleTypeRole</key>
    #PlistExtra:         <string>None</string>
    #PlistExtra:         <key>LSHandlerRank</key>
    #PlistExtra:         <string>Owner</string>
    #PlistExtra:         <key>LSItemContentTypes</key>
    #PlistExtra:         <array>
    #PlistExtra:             <string>de.filipposoftware.MasterOfRegularity.cmm</string>
    #PlistExtra:         </array>
    #PlistExtra:     </dict>
    #PlistExtra: </array>
    
    #PlistExtra: <key>UTExportedTypeDeclarations</key>
    #PlistExtra: <array>
    #PlistExtra:     <dict>
    #PlistExtra:         <key>UTTypeDescription</key>
    #PlistExtra:         <string>Race File</string>
    #PlistExtra:         <key>UTTypeIdentifier</key>
    #PlistExtra:         <string>de.filipposoftware.MasterOfRegularity.cmm</string>
    #PlistExtra:         <key>UTTypeTagSpecification</key>
    #PlistExtra:         <dict>
    #PlistExtra:             <key>public.filename-extension</key>
    #PlistExtra:             <string>cmm</string>
    #PlistExtra:             <key>public.mime-type</key>
    #PlistExtra:             <string>public.text</string>
    #PlistExtra:         </dict>
    #PlistExtra:     </dict>
    #PlistExtra: </array>

and as already written, it works on my iPhone 6+ with iOS 12.4.8 without problems, but not on my iPhone X with iOS 13.5.1.
 
Upvote 0
Top