-
Notifications
You must be signed in to change notification settings - Fork 123
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
Expected object 'MR' has no actual declaration in module MyApplication.shared.iosArm64Main for Native #562
Comments
adding |
The configuration you mentioned has been added to the ios section: dependsOn(commonMain), but it still failed. |
It's like 531, You should also try to add depends on in all iOS modules that are failing If that doesn't work, I got nothing |
i got exacly same problem with same plugins version plugins { kotlin {
} android {
} sqldelight { multiplatformResources { 3.run your project and it would be work the problem is that in generate files moko->androidMain&IosArm64Main and ... does not regonize they src folder as source root |
https://github.com/wangzhigang1112/MobileApp/blame/main/MobileApp.zip
Project File :https://github.com/wangzhigang1112/MobileApp/blame/main/MobileApp.zip |
This looks like moko resources issue after updating Kotlin version to 1.9.0 But adding dependsOn(common) in Android dependencies fixed it. |
"Android has a solution, but I haven't found one for iOS yet." |
In here, after adding a I have an ios source set that looks like this:
|
"Still not working. What version of Kotlin are you using? My configuration is Kotlin 1.9.0." |
I have faced with same problems on: kotlin.version=1.9.0 |
fix in #575 |
will be fixed in 0.24.0, please check in 0.24.0-alpha-6 |
should be fixed in 0.24.0-beta-1 |
settings.gradle.kts
build.gradle.kts(:shared)
Compilation of the generated MR file only occurs in commonMain and there are compilation errors, such as the screenshot shown above. Have you encountered this problem before? How can it be solved?
The text was updated successfully, but these errors were encountered: