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

[iOS] Uncaught Kotlin exception: kotlin.IllegalStateException: Internal kotlinx.rpc error: unable to find class UserService rpc client object - on Sampled app #93

Closed
jerryOkafor opened this issue Jun 6, 2024 · 8 comments

Comments

@jerryOkafor
Copy link

jerryOkafor commented Jun 6, 2024

I tried following the Readme guidelines and ended up with the following error:

Uncaught Kotlin exception: kotlin.IllegalStateException: Internal kotlinx.rpc error: unable to find class UserService rpc client object

To be clear, Android works as expected and to be sure I am not making any mistakes, I pulled the sample, tried it on iOS, and ended up with the same issue.

Environment:
Kotlin: 1.9.24
Xcode Version : 15.4 (15F31d)

@Mr3zee
Copy link
Collaborator

Mr3zee commented Jun 6, 2024

Thanks for the report! I will investigate

@afTrolle
Copy link

afTrolle commented Jun 8, 2024

I'm also having the similar issue, However I have a different project setup than the sample.

I moved the RPC interface to it's own module that then the server and client modules depend on.

kotlin.IllegalStateException: Internal kotlinx.rpc error: unable to find class run.tevla.api.ForgeServiceContract rpc client object

Tried moving the code into the shared KMM module still got the same result.

image

@jerryOkafor
Copy link
Author

This is similar to how my modules are arranged. When I noticed the issue, I pulled the sample and ran it to verify that the same issue existed.

@ShayOinif
Copy link

Hello.
I am facing the same issue and would love to have a fix for it.
Thanks!

@ShayOinif
Copy link

ShayOinif commented Jun 15, 2024

Seems like the problem is present on macOS targets as well.
Thought maybe I misconfigured my gradles, but in the sample from the code base the issue reoccurred.
Maybe it is a problem with bundling to Framework on Apple targets?

@ShayOinif
Copy link

Tested and found the same issue on Linux targets as well.

@xxfast
Copy link

xxfast commented Jun 20, 2024

Only seems to be affecting the native targets - JVM and Android targets works as expected 👍

@Mr3zee
Copy link
Collaborator

Mr3zee commented Jun 24, 2024

Fixed in #112

@Mr3zee Mr3zee closed this as completed Jun 24, 2024
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