Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run iOS app? #225

Open
pedrofsn opened this issue May 3, 2024 · 7 comments
Open

How to run iOS app? #225

pedrofsn opened this issue May 3, 2024 · 7 comments

Comments

@pedrofsn
Copy link

pedrofsn commented May 3, 2024

I believe I can't do it because of this error.
image

@pedrofsn
Copy link
Author

pedrofsn commented May 3, 2024

./gradlew build

e: file:///Users/xpto/Documents/fakefolder/FantasyPremierLeague/common/src/iosMain/kotlin/dev/johnoreilly/common/actual.kt:9:40 Unresolved reference: instantiateImpl

@joreilly
Copy link
Owner

joreilly commented May 3, 2024

I also see that error in IDE but I can still build/run from Xcode. Some discussion about this also in https://kotlinlang.slack.com/archives/C3PQML5NU/p1714645556181519?thread_ts=1714645556.181519&cid=C3PQML5NU

@joreilly
Copy link
Owner

Did it work after that?

@jhasan95
Copy link

jhasan95 commented May 15, 2024

@pedrofsn , I have also faced the problem in this project: https://github.com/ml-opensource/KMP-Template, and after manually adding this, It's working..
import data.db.instantiateImpl

@Vivecstel
Copy link

Is there any workaround for this ? I see that the ksp generates the given function but for some reason ide fails to find it (also using gradle)

@toffeantyri
Copy link

Resolved??

@toffeantyri
Copy link

Im looking and i see it:
Sync
Clear (generated res cleared)
Rebuild
before ( instantiateImpl generate not finished)
Then drop error (unresolved ref)
Then instantiateImpl generated.

And my module named as IosX64,
But generated module named: kotlin [iosX64Main]

What do you think about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants