Hello all, I need help, I’m trying to build my iOS...
# multiplatform
a
Hello all, I need help, I’m trying to build my iOS app on xcode, did all the configurations from https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/ but always receiving this error:
Task 'embedAndSignAppleFrameworkForXcode' not found in project ':mobile_shared'.
what I need to do? I followed all the steps.
j
Are you using at least Kotlin 1.5.20?
a
yes
j
fwiw I'm using it in https://github.com/joreilly/MortyComposeKMM if there's anything that might be worth comparing....
a
cool, going to look, thanks!
r
One thing the blog post doesn't mention that I've been bitten by is, the task changes if you change the framework name. So if your framework is Foo, then the task becomes
embedAndSignFooAppleFrameworkForXcode
👍🏼 1
m
@russhwolf does this mean that for a
shared
module, the command is
embedAndSignSharedAppleFrameworkForXcode
?🤔. Getting the above error on
1.5.30
even though my module is called
shared
.
r
I think if it matches the module name exactly (case-sensitive) then you won't see "Shared" in the name, but it should be quick to try either one if you're having trouble. You can also try to trace the logic in the plugin if you want. The task is defined here and it ultimately calls into this method