<#C0346LWVBJ4|compose-ios> I can launch the demo i...
# compose-ios
d
#compose-ios I can launch the demo in android studio, but in xCode it has a problem: my mac has config Android Studio's jre in .zshrc, it is working fine, so how can I fix this problem?
k
check the
kdoctor -v
output
d
here
k
show your
kdoctor --version
. if it is not 1.0.0 then update it. because I don't see Xcode java specific info
d
how to config java in Xcode?
k
oh! set you JAVA_HOME up
d
I set the JAVA_HOME just now, and reboot my pc, but it doesn't work
k
what does kdoctor -v say now?
d
nothing change
k
🤔
Xcode JAVA_HOME can be configured in Xcode -> Preferences -> Locations -> Custom Paths
try to point it explicitly. if it helps let me know I will investigate how to improve kdoctor report
d
ok, I try
I add, but not work🫢
k
@Ilia Solovei do you have any ideas?
does
java --version
work for you? @dan
i
@dan could you also try to install java via homebrew and set it as a JAVA_HOME?
a
@dan I had similar issues, although it was on our CI. The problem was, my
JAVA_HOME
was declared in
.zshrc
, but CI build seems run under
/bin/sh
, so I had to declare
JAVA_HOME
in
.bashrc
too. See if it helps.
d
@A I also declare
JAVA_HOME
in
.bashrc
, but not work
@Ilia Solovei I done what you say, but not work
@Konstantin Tskhovrebov where is the script that use java? I want change it to full path