I have several targets in my project using the same codebase, but only some of them are supposed to use AppTrackingTransparency framework.
I imported it using a compiler directive:
#if TRANSPARENCY
import AppTrackingTransparency
#endif
Where TRANSPARENCY
is added in Swift Compiler - Custom Flags/Other Swift Flags as -DTRANSPARENCY
only for targets where it's needed.
The same directive is wrapping a piece of code that actually presents the permission dialog.
However one of the targets that does NOT import AppTrackingTransparency was rejected with a request:
Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request. Please explain where we can find the App Tracking Transparency permission request in your app.
Did I miss something and AppTrackingTransparency is still being added in all targets? Is there a way to prevent it?