Shubham Singh
05/28/2024, 4:50 PMSKIE
library also from 0.6.1
to 0.8.0
to transition from kotlin 1.9.22
to kotlin 2.0.0
I am pasting my error here:
/Users/shubham.singh/StudioProjects/littleGreenMen2/umbrella/build/skie/binaries/podDebugFramework/DEBUG/iosArm64/cache/kotlin-framework/KMMUmbrella.framework/Headers/KMMUmbrella.h:21995:9: error: 'CoreTelephony/CoreTelephony.h' file not found
#import <CoreTelephony/CoreTelephony.h>
^
/Users/shubham.singh/StudioProjects/littleGreenMen2/umbrella/build/skie/binaries/podDebugFramework/DEBUG/iosArm64/cache/kotlin-framework/KMMUmbrella.framework/Headers/KMMUmbrella.h:21995:9: note: did not find header 'CoreTelephony.h' in framework 'CoreTelephony' (loaded from '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk/System/Library/Frameworks')
#import <CoreTelephony/CoreTelephony.h>
^
<unknown>:0: error: could not build Objective-C module 'KMMUmbrella'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/KMMUmbrella.h"
^
/Users/shubham.singh/StudioProjects/littleGreenMen2/umbrella/build/skie/binaries/podDebugFramework/DEBUG/iosArm64/cache/kotlin-framework/KMMUmbrella.framework/Headers/KMMUmbrella.h:21995:9: error: 'CoreTelephony/CoreTelephony.h' file not found
#import <CoreTelephony/CoreTelephony.h>
^
/Users/shubham.singh/StudioProjects/littleGreenMen2/umbrella/build/skie/binaries/podDebugFramework/DEBUG/iosArm64/cache/kotlin-framework/KMMUmbrella.framework/Headers/KMMUmbrella.h:21995:9: note: did not find header 'CoreTelephony.h' in framework 'CoreTelephony' (loaded from '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk/System/Library/Frameworks')
#import <CoreTelephony/CoreTelephony.h>
^
<unknown>:0: error: could not build Objective-C module 'KMMUmbrella'
error: fatalError
at co.touchlab.skie.util.Command.handleExitCode(Command.kt:102)
at co.touchlab.skie.util.Command.execute(Command.kt:85)
at co.touchlab.skie.util.Command.execute$default(Command.kt:57)
at co.touchlab.skie.phases.swift.CompileSwiftPhase.callSwiftCompiler(CompileSwiftPhase.kt:135)
at co.touchlab.skie.phases.swift.CompileSwiftPhase.execute(CompileSwiftPhase.kt:41)
at co.touchlab.skie.phases.swift.CompileSwiftPhase.execute(CompileSwiftPhase.kt:10)
at co.touchlab.skie.phases.util.SkiePhaseGroup.execute$kotlin_compiler_core(SkiePhaseGroup.kt:26)
at co.touchlab.skie.phases.util.SkiePhaseGroup$execute$1.invokeSuspend(SkiePhaseGroup.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Shubham Singh
05/28/2024, 4:59 PMian.shaun.thomas
05/28/2024, 5:00 PMTadeas Kriz
05/28/2024, 5:03 PMTadeas Kriz
05/28/2024, 5:05 PMCoreTelephony
do you use in your Kotlin code?Shubham Singh
05/28/2024, 5:18 PMChrimaeon
05/28/2024, 5:39 PMTadeas Kriz
05/28/2024, 5:47 PMShubham Singh
05/28/2024, 5:58 PMShubham Singh
05/28/2024, 6:00 PMTadeas Kriz
05/28/2024, 6:02 PMCoreTelephony
in our SKIE playground and I was able to reproduce it. The problem is that with SKIE 0.8.0, we stopped generating fake frameworks for system SDKs. However, the code handling it is supposed to be replaced in the future, so we made it simple. And that simplicity expected all system frameworks to declare an umbrella header, which some of them don't.Shubham Singh
05/28/2024, 6:06 PMShubham Singh
05/28/2024, 6:07 PMTadeas Kriz
05/28/2024, 6:09 PMShubham Singh
05/28/2024, 6:17 PMCan we declare an umbrella header from our side ?
Tadeas Kriz
05/28/2024, 6:18 PMTadeas Kriz
05/28/2024, 6:18 PM0.7.2-preview.2.0.0-RC3
in the meantimeShubham Singh
05/28/2024, 6:19 PMSKIE
0.7.2-preview.2.0.0-RC3
supports kotlin 2.0.0
versionShubham Singh
05/28/2024, 6:19 PMShubham Singh
05/28/2024, 6:19 PMTadeas Kriz
05/28/2024, 6:21 PMskie.kgpVersion=2.0.0
in your gradle.properties
Shubham Singh
05/28/2024, 6:21 PMShubham Singh
05/28/2024, 6:25 PMTadeas Kriz
05/28/2024, 6:26 PMskie.kgpVersion=2.0.0-RC3
Shubham Singh
05/28/2024, 6:33 PMShubham Singh
05/28/2024, 6:34 PMShubham Singh
05/28/2024, 6:35 PMShubham Singh
05/28/2024, 6:35 PMTadeas Kriz
05/28/2024, 6:35 PMTadeas Kriz
05/28/2024, 6:35 PMShubham Singh
05/28/2024, 6:35 PMTadeas Kriz
05/28/2024, 6:35 PMShubham Singh
05/28/2024, 6:36 PMTadeas Kriz
05/28/2024, 6:36 PMShubham Singh
05/28/2024, 6:37 PMShubham Singh
05/29/2024, 6:10 AMShubham Singh
05/29/2024, 6:10 AMShubham Singh
05/29/2024, 6:11 AMSKIE
Shubham Singh
05/29/2024, 6:14 AMShubham Singh
05/29/2024, 6:15 AMTabrez
05/29/2024, 6:21 AMSKIE
version : 0.7.2-preview.2.0.0-RC3
i see the framework is getting generated now.
We also use https://github.com/rickclephas/KMP-NativeCoroutines for observing flows in KMP, it used to generate class functions with NativeKT
syntax. it's broken in this version and it's not generating extension fuctions for KMP model functions.
e:g
extension RandomLettersGenerator {
func getRandomLetters() -> NativeSuspend<String, Error, KotlinUnit> {
RandomLettersGeneratorNativeKt.getRandomLetters(self)
}
}
Tabrez
05/29/2024, 6:21 AMTabrez
05/29/2024, 7:00 AMTadeas Kriz
05/31/2024, 1:00 PMTabrez
05/31/2024, 1:02 PM