Actually Apple test with a 17.4, we still have the problem and sometimes the ATT doesn't appear at all. So we see our app be refused when submitted.
The weird fact is that we don't have the problem when building with Xcode, it's only when we deploy in TestFlight.
In previous version of iOS, everything is fine.