Comments (4)
I am getting the same error: Cannot find 'MainViewControllerKt' in scope
Although, i am only getting it when i have set up the source sets in the build.gradle.kts
like so:
sourceSets {
getByName("androidMain").dependsOn(commonMain.get())
getByName("desktopMain").dependsOn(commonMain.get())
getByName("iosArm64Main").dependsOn(commonMain.get())
getByName("iosX64Main").dependsOn(commonMain.get())
getByName("iosSimulatorArm64Main").dependsOn(commonMain.get())
}
(I have added those to solve another issue related to building for JVM.)
I tried to use only the getByName("desktopMain").dependsOn(commonMain.get())
, but the result is the same: Cannot find 'MainViewControllerKt' in scope
When not using any dependsOn(commonMain.get())
, i can build without issues.
Now, @piet90, do you have the dependsOn set up too? If not, there may be some deeper issue.
from moko-resources.
Thank you @FrancescoBottino for your reply.
Indeed, I have the dependsOn
calls, but I added them to solve this issue: #618
Is there a workaround here?
from moko-resources.
@piet90 Using version 0.24.0-alpha-4 solved the issue. Take a look into the releases and to PR #575
from moko-resources.
should be fixed in 0.24.0-beta-1
from moko-resources.
Related Issues (20)
- 0.24.0-beta-2 includes file extension in `files` and `assets` in the resource name HOT 1
- Apostrophe incorrectly displayed on iOS HOT 3
- 0.24.0-beta-03 includes removed strings and fails to build HOT 3
- 0.24.0-beta-3 incorrectly escapes unicode character sequences in iOS strings file HOT 2
- Add observable to StringDesc.localeType
- 0.24.0-beta-03 When compiled on windows, android assets use \ instead of / for folder paths HOT 1
- Cannot change attributes of dependency configuration ':xxx:iosX64CInteropApiElements' after it has been resolved HOT 11
- Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' HOT 1
- Load image as plain resource by string on iOS
- Slow loading of string resource at first open of screen HOT 6
- Suggested improvements to CopyFrameworkResourcesToAppTask HOT 1
- 0.24.0-beta-4 incorrectly handles plurals with `"` character; displays as `\"` on iOS and doesn't display on Android. HOT 2
- Font caching Issue for ios HOT 9
- Crash when using MR.strings() in unit tests iOS HOT 9
- Are there plans to support linuxX64? HOT 1
- Remove unnecessary dependency HOT 1
- How do I get the text value on JVM? HOT 2
- Have a dumb question about a different approach to save resources directly in a Kotlin file :D HOT 1
- 0.24.0-beta-5 creates invalid unicode escape sequence HOT 8
- Can't use Moko resources for JVM target HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moko-resources.