-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle sync fails after upgrading from 0.23.0 to 0.24.x #784
Comments
looks like you use configureCopyXCFrameworkResources when should not use it. can you show your build.gradle? |
This is the plugins {
alias(libs.plugins.XXX.kmm.library)
alias(libs.plugins.skie)
}
android {
namespace = "xxxxxxxx"
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
buildFeatures {
buildConfig = true
}
}
multiplatformResources {
resourcesPackage.set("xxxxxxx")
configureCopyXCFrameworkResources("KMMSharedDomain")
}
sqldelight {
databases {
create("Database") {
packageName.set("xxxx")
verifyMigrations.set(true)
}
}
} |
@vojta-horanek hi. in your build gradle i not see usage of XCFramework and also not see framework configuration at all. configureCopyXCFrameworkResources should be used only with XCFramework kotlin api |
I get the same issue and I already have Not sure if Let me know if I should do something differently in that case @Alex009 |
Here is the repro even with one module. |
Our project fails to be synced (specifically the KMP module) after updating moko-resources to 0.24.3 from 0.23.0. As I've tested, the same happens when using any of the other 0.24.x versions. The build (Android and iOS) is working fine, however android studio fails to sync and thus indexing is not working correctly. What is strange is that if XCode runs the
copyResourcesKMMSharedDomainDebugXCFrameworkToApp
task, it completes successfully and resources are indeed copied to the iOS application.The following issue is displayed when trying to sync:
The name
KMMSharedDomain
comes from usingconfigureCopyXCFrameworkResources("KMMSharedDomain")
in the configuration.I've experimented a bit and found out that when I don't use
configureCopyXCFrameworkResources
in the configuration, the sync actually completes just fine -> obvious since the task does not get registered 😄I suspect the cast in SetupAppleUtils:registerCopyXCFrameworkResourcesToAppTask is the cause of the issue.
This is a screenshot from the debugger evaluating
![Snímek obrazovky 2024-11-07 v 14 04 58](https://private-user-images.githubusercontent.com/12630566/383970246-f61207c9-034e-446e-9ec8-f5d7cb380419.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzkwMjIsIm5iZiI6MTczOTQzODcyMiwicGF0aCI6Ii8xMjYzMDU2Ni8zODM5NzAyNDYtZjYxMjA3YzktMDM0ZS00NDZlLTllYzgtZjVkN2NiMzgwNDE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5MjUyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3ZjI2OGFiYmVkNTI2OGFlYzQwNThhZmJlYWU1MWRkZGQ3NDA5OWQ4YTI1NmE0MTc5NWZhNzEyNDc4OTdiY2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.s2AC4MpCzBIuElsgtNh7XKQQi66PCzasvfE2zO3a5NM)
this.project.tasks.getByName("assemble$xcFrameworkName")
right before the sync crashes.Thanks in advance.
The text was updated successfully, but these errors were encountered: