icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.07k stars 121 forks source link

Error on copyFrameworkResourcesToApp not found from ios #775

Open calimero6201 opened 5 days ago

calimero6201 commented 5 days ago

Hello,

We have migrate from 0.24.0-alpha5 to 0.24.0 and now we have this error from ios side :

Cannot locate tasks that match ':shared:copyFrameworkResourcesToApp' as task 'copyFrameworkResourcesToApp' not found in project 'shared'.

We can't find solution to resolve this issue :(

We use static framework configuration :

listOf(
    iosArm64(),
    iosSimulatorArm64()
).forEach { iosTarget ->
    iosTarget.binaries.framework {
        baseName = "Shared"
        isStatic = true
        binaryOption("bundleId", "Shared")
        export(libs.moko.graphics)
        export(libs.moko.resources)
    }
}

We can't upgrade to version 0.24.0 or 0.24.2 because this error.

Can you helps us please?

Regards,

Stevens
Alex009 commented 5 days ago

what you see in gradle logs?

calimero6201 commented 4 days ago

i've this in my logs :

Showing Recent Messages FAILURE: Build failed with an exception.

Cannot locate tasks that match ':shared:copyFrameworkResourcesToApp' as task 'copyFrameworkResourcesToApp' not found in project ':shared'.

Run gradlew tasks to get a list of available tasks.

For more on name expansion, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.

Run with --stacktrace option to get the stack trace.

Run with --info or --debug option to get more log output.

Run with --scan to get full insights.

Get more help at https://help.gradle.org.

BUILD FAILED in 5s

when i put version to 0.24.0-alpah5 it's ok, no error.

Gradlew task has no this task , only this for copy resources :

copyResourcesDebugFrameworkIosArm64 copyResourcesDebugFrameworkIosSimulatorArm64 copyResourcesDebugTestIosArm64 copyResourcesDebugTestIosSimulatorArm64 copyResourcesReleaseFrameworkIosArm64 copyResourcesReleaseFrameworkIosSimulatorArm64