Git Product home page Git Product logo

Comments (4)

FrancescoBottino avatar FrancescoBottino commented on September 23, 2024

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.

piet90 avatar piet90 commented on September 23, 2024

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.

FrancescoBottino avatar FrancescoBottino commented on September 23, 2024

@piet90 Using version 0.24.0-alpha-4 solved the issue. Take a look into the releases and to PR #575

from moko-resources.

Alex009 avatar Alex009 commented on September 23, 2024

should be fixed in 0.24.0-beta-1

from moko-resources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.