Hii team, I have updated my android project to kot...
# android
s
Hii team, I have updated my android project to kotlin 2.0 and I am able to build and run my project for android but there is a KMM module which we publish to be consumed for the iOS project. When I build that particular module using command ./gradlew build it is showing me some error. Can anyone help me here ? Also I want add here that I have upgraded my
SKIE
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:
Copy code
/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)
🧵 4
c
> I am pasting my error here: You should paste code snippets here in the thread