Andrew Watson
12/03/2024, 6:59 PMAndrew Watson
12/04/2024, 12:49 AMeygraber
12/04/2024, 1:36 AMAndrew Watson
12/04/2024, 4:08 AMeygraber
12/04/2024, 4:16 AMAndrew Watson
12/04/2024, 4:20 AMAndrew Watson
12/05/2024, 1:16 AM@KmpComponentCreate
annotation @eygraber - for iOS can you put the
@KmpComponentCreate
expect fun createAppComponent(): AppComponent
function in just iosMain, or do you need to create it for each iOS target (e.g. iosX64()
, iosArm64()
)?
I've adjusted my library to generate some code that is resulting in a specific iOS target (simulator in this case) with the expect version just in iosMain and it appears to not like that.eygraber
12/05/2024, 1:50 AMkspIosX64
, etc...) and put your @KmpComponentCreate expect fun
into the intermediate source set where it makes sense (e.g. iosMain
, appleMain
, commonMain
, etc...).Andrew Watson
12/05/2024, 3:52 AMexpect
function w/ annotation in iosMain
, when I generate the actual
function in generated target code (e.g. iosArm64Main)
via the processor, it says there is no corresponding expect
method and won't build. Is there some KSP setting or trick to ensure that the iosMain and generated target code know about each other?eygraber
12/05/2024, 4:10 AMactual fun
have the exact same signature as the expect fun
(package, annotations, etc...)?Andrew Watson
12/05/2024, 5:35 AMAndrew Watson
12/05/2024, 7:47 PM