Hello, my multi-platform app crashes on startup fo...
# compose-ios
s
Hello, my multi-platform app crashes on startup for iOS 15. x but runs fine on iOS 16, 17, and 18. How can I understand the Xcode crash logs? They're quite vague Using :
compose-plugin
->
1.7.3
kotlin
->
2.1.0
Copy code
0x104fa1ec8 <+1824>: mov    x1, #0x0                  ; =0 
    0x104fa1ecc <+1828>: bl     0x104fede5c               ; dyld3::MachOFile::isSimulatorPlatform(dyld3::Platform, dyld3::Platform*)
    0x104fa1ed0 <+1832>: tbnz   w0, #0x0, 0x104fa1ee4     ; <+1852>
    0x104fa1ed4 <+1836>: ldr    x1, [x19, #0x10]
    0x104fa1ed8 <+1840>: add    x2, sp, #0xd0
    0x104fa1edc <+1844>: mov    x0, x21
    0x104fa1ee0 <+1848>: bl     0x104fe0ad8               ; dyld4::ExternallyViewableState::commit(lsl::Allocator&, lsl::Allocator&)
    0x104fa1ee4 <+1852>: adrp   x1, -5
    0x104fa1ee8 <+1856>: add    x1, x1, #0x0
    0x104fa1eec <+1860>: mov    x0, x19
    0x104fa1ef0 <+1864>: bl     0x104fa23bc               ; dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)
->  0x104fa1ef4 <+1868>: mov    x20, x0
    0x104fa1ef8 <+1872>: add    x0, sp, #0xd0
    0x104fa1efc <+1876>: bl     0x104fc9030               ; lsl::EphemeralAllocator::~EphemeralAllocator()
    0x104fa1f00 <+1880>: ldr    x16, [sp, #0x48]
    0x104fa1f04 <+1884>: cbnz   x16, 0x104fa1fd0          ; <+2088>
    0x104fa1f08 <+1888>: mov    x21, #0x0                 ; =0 
    0x104fa1f0c <+1892>: b      0x104fa1ff8               ; <+2128>
    0x104fa1f10 <+1896>: mov    x9, #0xfffff0000          ; =68719411200 
    0x104fa1f14 <+1900>: movk   x9, #0xc10c
    0x104fa1f18 <+1904>: ldrb   w8, [x9]
Would appreciate the help 🙏
On looking closely its failing with this error
Copy code
dyld[50638]: Symbol not found: _OBJC_CLASS_$_UIWindowSceneGeometryPreferencesIOS
 Referenced from:
But not sure still how to fix it
a
Hi, it looks like you have the
UIWindowSceneGeometryPreferencesIOS
class that is not exist in the older SDKs. Unfortunately, iOS version check won't help in this case. Could you please show the code that uses the
UIWindowSceneGeometryPreferencesIOS
to let me find possible solutions.
f
s
Hi, thanks for the response. Yes, that's right;
UIWindowSceneGeometryPreferencesIOS
is not a part of iOS 15, hence the " symbol not found " issue I was using this library, which was causing this crash. Now, I'm fixing it Library - https://github.com/Chaintech-Network/ComposeMultiplatformMediaPlayer Thanks for the insights!
👀 1
j
Wouldn't recommend this library
s
Wouldn't recommend this library
@Jimmy Nelle why 👀