ryanmcgrath/cacao

Class with name RSTApplication could not be found

Closed this issue · 3 comments

I'm trying to build on top of trunk with some builder code for easier creation of simple UIs, but I keep hitting this error:

thread 'main' panicked at 'Class with name RSTApplication could not be found',

Occurs at

let shared_app: id = msg_send![class!(RSTApplication), sharedApplication];

Hmm, that's very odd - can you share a more full code sample that I could take a look at?

Chances are this just needs that class! call replaced with a register... call, but I'm curious if you have something else in the setup flow going on considering this isn't a widely reported bug.

(or if it's a regression here, somehow)

Occurs with running one of the examples for me.

This should be fixed now - a recent PR somehow had tests pass automatically but introduced this bug, which I guess we need to look at... though the issue does come down to ObjC being possible to error at runtime, which this bug was. Compiler couldn't have caught it.