GithubHelp home page GithubHelp logo

Comments (2)

KaterinaPetrova avatar KaterinaPetrova commented on May 17, 2024 1

Hey @ultraon! From what I can see from the error log, JAVA 1.8 is used for building KMM module from Xcode. Please try add
JAVA_HOME = /usr/local/Cellar/openjdk@11/11.0.10/libexec/openjdk.jdk/Contents/Home to the Run Script Xcode build Phase (before calling embedAndSignAppleFrameworkForXcode Gradle task). If this helps, then JAVA_HOME is not configured properly for the shell used in XCode

from kmm-production-sample.

henriquehorbovyi avatar henriquehorbovyi commented on May 17, 2024 1

Hello, @ultraon. I just had the same problem.

The problem in my case was the following:

  • XCode relies on a program called /usr/libexec/java_home to obtain the JAVA_PATH, but as I installed my java jdk via a third party sdkmanager (sdkman), java_home could not find the path properly. This wiki explains why it happens.

The solution:

  • I had to, manually, open XCode > Preferences > Locations > Custom Paths and add a custom path with name JAVA_HOME pointing to my current JAVA_HOME directory.

from kmm-production-sample.

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.