While trying to implement Google Tag Manager v5 in my Swift app, I faced the following warning, which caused me some troubles :
GoogleTagManager warni
First, make sure you're using the correct GTM container type : it should be displayed as iOS, not as iOS (legacy) here : https://tagmanager.google.com/?hl=en#/home
Then, create a folder named container in your project, and download your actual container in it.
Now, you just have to import the folder you just created :
Everything should work as expected now ! In order to be sure you made things right, the container folder should appear as a blue folder in your Xcode file tree, not as a yellow one.