Hi Everyone, I'm facing this error lately on Compo...
# multiplatform
k
Hi Everyone, I'm facing this error lately on Compose Multiplatform Project. I alway get
no execution target found
. Is there any solution for this? I really needs this solution. I want get this error for the ios App. Xcode is working fine & I do have emulators as well.
c
The fun thing with Apple is they break Xcode for you without you even opening it! Basically, open xcode check that all your targets are downloaded, sync then try again.
To double check open xcode then
CMD + ,
to open settings > platforms to check you have 17.5 and simulators downloaded
k
Yes, All the Simulators are available in the Xcode and I can run them too. But I always get error from the Android studio
c
then yeah you just need to select a different execution taget the uuid probably changed
k
I did but still don't get any execution target in the android studio *
c
Should look like this:
k
Here is the issue. I don't get the execution target simulators on the android studio
c
OK, whats kdoctor say?
k
I even tried by creating some new projects from the wizards but still no execution target values
Kdoctor is all checked
c
OK, you using pods?
k
I'm using the official wizard
c
You can use pods or swiftpackage manager, you need to check, the former uses xcworkspace, the latter uses xcproject
check your shared/build.gradle.kts to see if it mentions cocoapods in there
k
No I don't have any coca pods in my projects.
c
ok, then does it run when you run it from xcode?
k
Yes
c
Mmm, that is odd then
k
Some old projects doesn't work from Xcode but latest from the wizards works with the default code
I was planning to reinstall the Mac that might help me out.
c
Interesting. TBH I just start nuking build files and caches then resyncing then it eventually works
If another project shows the targets and this doesn't then its not the mac install
k
No project display the targets
But few days back, I was able to see the execution target
c
I would gradle clean, invalidate caches, reboot, then resync and try again.
k
Thanks man. Surely, I'll try it out.
c
(if you haven't already)
It sounds like AS has a bad cache and isn't reading Xcode correctly (which isn't 100% there fault, apple really suck at developer tooling)
k
I haven't cleared the cache of gradle. I'll try that out.
Yup,
Thanks man for your precious time 🙏
c
gradle clean
primarly, Android Studio Invalidate caches is probably going to be the big one as that is what reads and caches the project config
🤞
k
I'll do that