the problem is how to turn an object with a swipe on android

I have been unable to find a working way to rotate an object with a swipe for a long time, I have tried many scripts, none of them work

Have you tried… google? Searching for “unity rotate with swipe” shows about a gazillion results.

yes, but nothing working was found

What problems are you encountering? The concept is always the same and did not change since touch was introduced. You get the movement of the finger over the screen, calculate the delta position change and apply a rotation on the correct axis based on that. Every video or guide covering this topic should do just about that, in some variation or another.

The touch class provided by Unity even directly comes with a deltaPosition:

So for a simple touch controlled rotation around the y-axis, while you detect the touch, get the delta, multiply it by some desired speed value, calculate the delta rotation based on that and add it to the current rotation.