The general premise of a UBI is that it's unconditional.
If you tried to say someone is required to produce something without specifying what it is, they'll produce whatever is the easiest thing to produce, which will naturally be useless if they otherwise wouldn't have produced anything because the only reason they're doing it is to satisfy the demand of someone not imposing any specific requirements on the output.
But if it's actually unconditional then the things produced would only be the things someone wants to produce, i.e. the things worth their time to produce when they're not actually required to spend their time producing it. Those things would tend to be useful because at least the author found them to be and there's a decent chance they're not unique in the world. If you e.g. make an app just because you want to use it yourself, maybe someone else wants to use it too.
This seems reasonable on it's surface, however for anyone that is tried to start a business, or sell anything, there is a big gap here.
The gap between creating something useful (an app) and the ability to sell or market it is HUGE. That gap is the difference between useful or not.
So I agree, lots of "useless" stuff will be made because the drive to close that GAP (which looks small) won't be done because there is no need for it.
UBI might fuel some useless work, but it also might provide a way to people to be more into creative side of things rather than selling and marketing rat race.
Also in less developed countries money even less corresponds to value. It almost always has some kind of mafia and corruption that extracts huge portions of value from the economy and basically net negative, though profitable.
I'd like to live in the world where money are always allocated fairly, but we see that in IT, for example, predating, stealing data, spying on people bring more money than the honest work due to misaligned incentives, when bad actors pay more money than actual consumer.
It is easy to find examples of money not being a judgement of value in practice: think about thief or extortion for example, or pushing drugs.
Also, I find the online discussion around UBI to be quite weird. I don't think anyone serious is advocating for it to be particularly high. In my opinion, UBI should cover your necessities plus some so you can participate in society. This gives everyone the opportunity to take it slow or focus on personal projects without fear. Everything luxurious can not, and should not, be affordable with UBI. This will leave ample opportunity for people to still care about and want to work.
Humans will always do. It is in our nature. But not letting people get homeless or starve to death might enable those of us that don't want to do what our overlords deem useful to do the things our society so desperately needs. I don't need some poor fool to cook my burger for me. I'd rather take turns with my friends that now have free time.
There is a problem with "plus some so you can participate in society"
In a massive society this will never be agreed to. The 'some' here will never be enough. Too little and it's not UBI, too much and impossible to fund. Who is going to define what a luxury is? Is owning your own home a luxury, a car, washer and dryer?