If your app is an expo app, this can happen when you use pod install instead of npx pod-install. At least in my case, the warning went away when using the latter command instead.
pod install
npx pod-install