Installing a compose-ios app on a iphone device sh...
# compose-ios
a
Installing a compose-ios app on a iphone device shows black screen, but works fine on a simulator 🤔 @Dima Avdeev ?
d
Can you please check this sample to work's good on your device: https://github.com/JetBrains/compose-jb/tree/master/experimental/examples/falling-balls-mpp In README.md we have instruction, how to launch on real iOS device.
a
Why are all Composables marked as internal @Dima Avdeev?
I get the following error when building the common compose module
Copy code
Compilation failed: No file for dev.baseio.slackclone/keyboardAsState|6954669380129174022[0] (@ dev.baseio.slackclone/keyboardAsState|6954669380129174022[0]) in module `<dev.baseio.slackclone:common-compose-ui>`[ModuleDescriptorImpl@1a046553]
e: java.lang.IllegalStateException: No file for dev.baseio.slackclone/SlackApp|-64952598519058800[0] (@ dev.baseio.slackclone/SlackApp|-64952598519058800[0]) in module `<dev.baseio.slackclone:common-compose-ui>`[ModuleDescriptorImpl@35f54e31]
	at org.jetbrains.kotlin.backend.common.serialization.BasicIrModuleDeserializer.deserializeIrSymbol(BasicIrModuleDeserializer.kt:111)
	at org.jetbrains.kotlin.backend.common.serialization.IrModuleDeserializer.declareIrSymbol(IrModuleDeserializer.kt:75)
	at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.findDeserializedDeclarationForSymbol(KotlinIrLinker.kt:127)
	at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeOrResolveDeclaration(KotlinIrLinker.kt:169)
	at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.getDeclaration(KotlinIrLinker.kt:158)
	at org.jetbrains.kotlin.ir.util.ExternalDependenciesGeneratorKt.getDeclaration(ExternalDependenciesGenerator.kt:57)
	at org.jetbrains.kotlin.ir.util.ExternalDependenciesGenerator.generateUnboundSymbolsAsDependencies(ExternalDependenciesGenerator.kt:44)
	at org.jetbrains.kotlin.psi2ir.generators.ModuleGenerator.generateUnboundSymbolsAsDependencies(ModuleGenerator.kt:52)
	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:92)
	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment$default(Psi2IrTranslator.kt:75)
	at org.jetbrains.kotlin.backend.konan.PsiToIrKt.psiToIr(PsiToIr.kt:187)
d
We need internal annotation as workaround. For now, it's not possible to share
public Composable fun
with iOS (Kotlin native) and another platforms.
a
for some reasons its not working for me and throws the above exceptions when building.. if i start marking the composables as internal the build errors start going away.
d
Can you share reproduction sample?
Better on GitHub
a
had to mark all composables as Internal and added
kotlin.native.cacheKind=none
to gradle.props