Hi! Firstly i've setup my project with `moko-resou...
# moko
g
Hi! Firstly i've setup my project with
moko-resources:0.24.0-beta-4
and kotlin
1.9.23
. I've copied moko-resources manually via task:
Copy code
./gradlew shared:copyResourcesSharedReleaseXCFrameworkToApp \
      -Pmoko.resources.BUILT_PRODUCTS_DIR="$BUILT_PRODUCTS_DIR" \
      -Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH"
And everything worked fine there. Now i'm upgrading to kotlin
2.0.0
and latest
moko-resources:0.24.0-beta-5
with already added
configureCopyXCFrameworkResources("shared")
instead of custom script. But after
linkReleaseFrameworkIosArm64
succeeded i do my custom
copyXCFramework
which is:
Copy code
fun Task.copyXCFramework(projectName: String) {
    val buildPathRelease =
        "build/bin/ios${if (isIosSimulator()) "Simulator" else ""}Arm64/releaseFramework/$projectName.framework"
    val iosXCBinaryPath = "../iosApp/Libraries/$projectName.xcframework"

    project.delete(iosXCBinaryPath)
    project.copy {
        from(buildPathRelease)
        into(iosXCBinaryPath)
    }
}
so on this stage i'm not able to copy moko files, because it fails on:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':shared'.
> Could not create task ':shared:copyXCFramework'.
   > Cannot convert URL 'sts-client.shared:localization.bundle' to a file.
Can you help me with this without repro?
btw here is out custom script to copy moko manually:
Copy code
file_path="${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/sts-client.shared:localization.bundle"

# test if moko resources are already copied
if [ -e "$file_path" ]; then
  echo "Skipping Moko resources, already copied..."
else
  cd ..

  ./gradlew shared:copyResourcesSharedReleaseXCFrameworkToApp \
      -Pmoko.resources.BUILT_PRODUCTS_DIR="$BUILT_PRODUCTS_DIR" \
      -Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH"
fi
but task
copyResourcesSharedReleaseXCFrameworkToApp
doesn't exist anymore
actually same error happens to me when i use
beta-4
and do copying manually via same script