Sorry, forgot to tell the problem appeared for the archive. Anyway, now I managed to localize the problem, and it reproduces on a simple code example. Going to make a YouTrack issue now.
The problem seems to be caused by something wrong in the release mode. The project with the release framework fails, but the debug one works as expected. So, as a temporary workaround, you can stick to the debug framework.
About cross-posting - while there is no such a rule in the
guideline, I’m usually asking to avoid it. The reason here is that those channels share almost all their members, so, instead of involving more users in your case, it can just annoy people.