Comments (2)
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.
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 nameJAVA_HOME
pointing to my current JAVA_HOME directory.
from kmm-production-sample.
Related Issues (20)
- Android 12: Targeting S+ (version 31 and above) WorkManager update needed HOT 1
- Cocopoads Gradle Sync Issue HOT 1
- Handle coroutine cancelation on Activity lifecycle callbacks HOT 4
- We are working on xmlpull / kxml for kmp
- C# Interop Example
- Compose desktop app: Module with the Main dispatcher had failed to initialize HOT 2
- how to use NSClassFromString() in iosMain HOT 1
- iOS works ok, but Android app issues "Connect Timeout has Expired" message on startup and nothing loads HOT 1
- Promote desktop to non-experimental status HOT 1
- my project can not create the share.Framework normally HOT 1
- How to use the ConnectedView with generic state
- Libertad
- A MVVM approach HOT 1
- Exception serialization json with unknown keys HOT 3
- Some articles cut off the left side HOT 1
- A run time permission for both HOT 2
- Could not resolve :kotlin-native-prebuilt-linux-x86_64:1.8.10 in github actions
- Cant run on Xcode HOT 2
- A link to the app store/google play would be nice HOT 1
- Dependency mismatch on compose-app branch HOT 1
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 kmm-production-sample.