KMP 배우는중…
요즘 KMP 공부하는데 일주일전에 공부하던걸 글 남겼었군요
https://okky.kr/articles/1528589
여기서 적은 에러를 틈날때 조금씩 생각해봤습니다.
2 problems were found storing the configuration cache.
- Task :shared:compileKotlinIosSimulatorArm64 of type org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/8.9/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task :shared:linkDebugFrameworkIosSimulatorArm64 of type org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
See https://docs.gradle.org/8.9/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
강사의 repo 를 가져오면 잘 돌아가더라구요 코드관련 변경보다 환경관련 문제가 있기에 환경을 아주 맞게 고치지 않으면 안되겠다 싶네요
그래도 어느정도는 알아낸게 있는데요
pure KMP 의 경우라면 swift 로 ios 용 shared framework 로 컴파일 됩니다.
하지만 stateFlow 라이크한 코드를 짜려면 skie plugin 을 사용하게 되는데 그럴 경우 objc 로 컴파일 되더라구요
코드 가독성도 swift wrapping layer objc 라서 좀 별로구요
gradle 관련 지식이 많이 떨어진다는것도 이번에도 느꼈습니다. 얼마전 gradle version up 은 그래도 시간 들여서 좀 해봤는데…
본업이고 시간이 좀더 있다면 루트커즈를 해결하고 싶습니다만 비루한 자원으론 포기하는게 좋다는 생각이네요
강의 따라서 치는 주제에 거기서 알려주지 않는걸 해결하려는건 조금 어불성설인것 같네요
전체 강의를 한번 쓱 훑어보고 느꼈습니다.
저는 패잔병으로 꾸역꾸역 다음강의를 배우지만 능력 좋으신분들은 잘 해결하실수도 있지 않나 생각해 봅니다.
글 적어보니 알겠는데 코드블록으로 쓰는거 없어졌나요…
코드 변환하니 보기가 썩 좋진 않네요