thecatalinstan / Criollo

A powerful Cocoa web framework and HTTP server for macOS, iOS and tvOS.
https://criollo.io/
MIT License
290 stars 51 forks source link

Crash on iOS 14 when build with XCode 14.3 #110

Open Kostiantyn-Kleba opened 1 year ago

Kostiantyn-Kleba commented 1 year ago

**UTTypeCreatePreferredIdentifierForTag is deprecated on iOS 15.

UTTypeCreatePreferredIdentifierForTag returns 0x0.

There is no crash on iOS 16.**

https://developer.apple.com/forums/thread/685968

Thread 41: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

0 0x00007fff204a0d01 in CFRelease.cold.1 ()

1 0x00007fff20391e5e in CFRelease ()

2 0x000000011403f045 in -[CRMimeTypeHelper mimeTypeForFileAtPath:] at /Pods/Criollo/Criollo/Source/CRMimeTypeHelper.m:84

3 0x0000000114052fc9 in -[CRStaticFileManager initWithFileAtPath:options:fileName:contentType:contentDisposition:attributes:] at /Pods/Criollo/Criollo/Source/CRStaticFileManager.m:72

4 0x0000000114055cc5 in -[CRStaticFileManager initWithFileAtPath:] at /Pods/Criollo/Criollo/Source/CRStaticFileManager.m:375

5 0x000000010fb3358c in @nonobjc CRStaticFileManager.init(fileAtPath:) ()

6 0x000000010fb3308a in CRStaticFileManager.__allocating_init(fileAtPath:) ()