when I run compose-jb on ios (OS version 11.4) always crash, the crash log is:0x182386d8c __excepti...
j
when I run compose-jb on ios (OS version 11.4) always crash, the crash log is:0x182386d8c __exceptionPreprocess + 228 0x1815405ec objc_exception_throw + 55 0x182394098 -[NSObject+ 1388696 (NSObject) doesNotRecognizeSelector:] + 139 0x18238c5c8 forwarding + 1379 0x18227241c _CF_forwarding_prep_0 + 91 0x1055274c8 GrMtlCaps::getGPUFamily+ 11187400 (id, GrMtlCaps::GPUFamily*, int*) + 51 0x1055261b4 GrMtlCaps::GrMtlCaps+ 11182516 (GrContextOptions const&, id) + 411 0x10552a9b0 GrMtlGpu::GrMtlGpu+ 11200944 (GrDirectContext*, GrContextOptions const&, id, id, void const*) + 235 0x10552a888 GrMtlGpu::Make+ 11200648 (GrMtlBackendContext const&, GrContextOptions const&, GrDirectContext*) + 91 0x1054215f4 GrDirectContext::MakeMetal+ 10114548 (GrMtlBackendContext const&, GrContextOptions const&) + 203 0x10542150c GrDirectContext::MakeMetal+ 10114316 (GrMtlBackendContext const&) + 183 0x10574693c org_jetbrains_skia_DirectContext__1nMakeMetal + 107 0x104d5ffc8 kfun:org.jetbrains.skia.DirectContext.Companion#makeMetal+ 3030984 (kotlin.native.internal.NativePtr;kotlin.native.internal.NativePt 0x104dc3818 kfun:org.jetbrains.skiko.redrawer.MetalRedrawer#makeContext+ 3438616 (){}org.jetbrains.skia.DirectContext + 267 0x104dc137c kfun:org.jetbrains.skiko.context.MetalContextHandler#initContext+ 3429244 (){}kotlin.Boolean + 467 0x104da59e8 kfun:org.jetbrains.skiko.context.ContextHandler#draw+ 3316200 (){} + 227 0x104dc55f4 kfun:org.jetbrains.skiko.redrawer.MetalRedrawer.draw#internal + 343 0x104dc5da4 kfun:org.jetbrains.skiko.redrawer.MetalRedrawer.$$lambda-0COROUTINE$147.invokeSuspend#internal + 331 0x104dc6028 kfun:org.jetbrains.skiko.redrawer.MetalRedrawer.$$lambda-0COROUTINE$147.invoke#internal + 199 0x104da357c kfun:org.jetbrains.skiko.FrameDispatcher.$$lambda-0COROUTINE$146.invokeSuspend#internal + 1031 0x104aa2438 kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith+ 156728 (kotlin.Result<kotlin.Any?>){} + 563 0x104bf3dbc kfun:kotlinx.coroutines.DispatchedTask#run+ 1539516 (){} + 2675 0x104da6874 kfun:org.jetbrains.skiko.NsQueueDispatcher.dispatch$lambda-0#internal + 131 0x104da6b94 kfun:org.jetbrains.skiko.NsQueueDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$785.invoke#internal + 71 0x104da6c8c kfun:org.jetbrains.skiko.NsQueueDispatcher.$dispatch$lambda-0$FUNCTION_REFERENCE$785.$invoke+ 3320972 (){}#internal + 71 0x104da7d3c _6f72672e6a6574627261696e732e736b696b6f3a736b696b6f_knbridge130 + 251 0x181c78aa0 _dispatch_call_block_and_release + 23 0x181c78a60 _dispatch_client_callout + 15 0x181c8565c _dispatch_main_queue_callback_4CF$VARIANT$mp + 1011 0x18232f070 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 11 0x18232cbc8 __CFRunLoopRun + 2271 0x18224cda8 CFRunLoopRunSpecific + 551 0x184232020 GSEventRunModal + 99 0x18c26c758 UIApplicationMain + 235 0x10516cffc kfun:#main+ 7278588 (){} + 1347 0x10516ee44 Konan_start + 107 0x1051f6ce8 Init_and_run_start + 107 0x181cddfc0 start + 3
🧵 5
d
Hi! Can you please change your message. Leave only text, and write stackTrace log here in thread.
What project or sample are you trying to launch? Are you trying to use this sample? https://github.com/JetBrains/compose-jb/tree/master/experimental/examples/falling-balls-mpp#run-on-ios-simulator
j
sorry, this is my first time to use slack, I will change my text format. Above error is I change falling-balls-mpp project with UI to have adjust to use lazyColumn but I run on ios Physical machine.
d
Are you try to launch sample on simulator?
./gradlew iosDeployIPhone8Debug
j
I use ./gradlew iosDeployIPhone8Debug test on iphone8(15.5) simulator work well
@Dima Avdeev do u need more info about this crash ? my phone can repo this crash always.
d
Can you please make reproduction sample on GitHub?
j
ok, I will submit later
@Dima Avdeev this is sample:https://github.com/happyjun/KMMExample2
d
Thanks! I will research on my device
Do I need to install CocoaPods for launch project on device?
j
yes, you need to install CocoaPods.
d
And after this, I need to launch Xcode and start's app. Right?
j
yes. you need to 1. run "pod install" in podfile folder 2. double click "TMM-iOS.xcworkspace" file to open this workspace 3. then you should change app sign for yours in xcode and select your ios device 4. you can click to run app in xcode
@Dima Avdeev can u compile my example successfully and reproduce the crash in ios 7?
d
Sorry, I didn't try yet. But I will try later. Why iOS 7? At first message mentioned OS version 11.4
j
thanks, you can use os version 11.4, since my ios 7 's version is 11.4.
u
CodingChen means iPhone7 rather than iOS7,the crash occured on iPhone7 iOS 11
d
‘TMM/TMM.h’ file not found