When I subclass from a class defining a variable with SceneLocationView, sceneNode becomes nil

I also tried to substitute subclassing with protocol adoption with exactly the same result.

The question is vaguely put. I see two possibilities:

  1. this is something that's not related to Swift language itself, but to SceneKit, etc, in which case the usual advice is to ask on a better suited forum (Apple's dev forums or stackoverflow).

  2. let's say it's your code that has a variable sceneNode somewhere that's getting set to nil by another part of your code. In this case it might be relevant to this forum and the usual advice would be to post a minimal reproducible extract that reproduces the issue.

It does feel like it is (1) though, hence you are not getting answers here, but if you think it's (2) by all means show the relevant piece of code. In that case the fewer SceneKit shenanigans the better, only what you think is relevant to the issue itself.

Franckly that is not that easy to find the areas where to submit posts in this forum. At any rate I already submitted the issue both to the AppleDeveloper forums and the AppleFeedback, unfortunately not on StackOverflow as I was banned from it. I posted it also here to check if other users had the same problem and how they fixed it.
As for SceneNode, there is no access to it from the code: it is automatically managed inside SceneLocationView, and I did not find a code setting it to nil, even within that file. My feeling is that sometimes it is not even defined.