为什么 Xcode 说 Google Mobile Ads SDK was initialized without an application ID

Why is Xcode saying Google Mobile Ads SDK was initialised without an application ID

我已按照 googleAdMob 网站给出的确切说明进行操作,但是 Xcode 仍然抱怨我没有向我的 info.plist 添加 GADApplication 标识符。仅供参考 - 该应用程序构建良好,但一旦打开就会崩溃。我使用的网站:https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist

enter image description here

<dict>
        <key>GADApplicationIdentifier</key>
        <string>ca-app-pub-7134464775664257~1540277419</string>
        <key>SKAdNetworkItems</key>
        <array>
<dict>

尝试删除 <dict>...

您的 <key>GADApplicationIdentifier</key> 必须在 <key>UIAplicationScene 的正下方...类似这样的东西:

<dict>
<key>...
<key>UIAplicationSceneManifest</key>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-7134464775664257~1540277419</string>
<key>SKAdNetworkItems</key>
<array>..
</array>
</dict>