Adding the Unity SDK to a Capacitor iOS Project

For VoltBuilder, if I want to add the Unity SDK and other SDK, what’s the correct way — should I add it inside my Podfile like this:

target 'App' do
  capacitor_pods
  pod 'Google-Mobile-Ads-SDK'
  pod 'GoogleMobileAdsMediationUnity'
  pod 'GoogleMobileAdsMediationAppLovin'
  pod 'GoogleMobileAdsMediationIronSource'
end

or in capacitor.config.json like this:

"@capacitor-community/admob": {
  "ios": {
    "Pods": {
      "Google-Mobile-Ads-SDK": "12.12.0",
      "GoogleMobileAdsMediationAppLovin": "13.4.0.0",
      "GoogleMobileAdsMediationUnity": "4.16.2.0",
      "GoogleMobileAdsMediationIronSource": "8.7.0.0.0"
    }
  }
}

I would suggest using the CocoaPod and adding it to your Podfile. Let me know if that’s not working for you.

I think this is the correct way. target ‘App’ do capacitor_pods pod ‘Google-Mobile-Ads-SDK’ pod ‘GoogleMobileAdsMediationUnity’ pod ‘GoogleMobileAdsMediationAppLovin’ pod ‘GoogleMobileAdsMediationIronSource’ end