【问题标题】:Flutter build iOS error : Encountering error while build flutter app in iOS deviceFlutter 构建 iOS 错误:在 iOS 设备中构建 Flutter 应用程序时遇到错误
【发布时间】:2021-12-11 10:57:41
【问题描述】:

我正在尝试在直接在 android studio 上运行的 iOS 设备中构建颤振应用程序,但它在下面提示我这个错误:

正在运行 Xcode 构建... Xcode 构建完成。
12.7s 安装启动...

  • 线程 #3,队列 = 'com.apple.root.default-qos',停止原因 = 信号 SIGABRT 帧#0:0x000000019096dec4 libsystem_kernel.dylib`__pthread_kill + 8

目标 0:(跑步者)停止。

在 Xcode 中运行后,这是它显示的错误:

Google 移动广告 SDK 在没有应用 ID 的情况下进行了初始化。 Google AdMob 发布商,请按照https://googlemobileadssdk.page.link/admob-ios-update-plist 的说明设置有效的应用程序 ID。 Google Ad Manager 发布商,请按照https://googlemobileadssdk.page.link/ad-manager-ios-update-plist." 的说明进行操作

这是我的 info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>GADApplicationIdentifier</key>
    <string>ca-app-pub-4326637290771071~7544496339</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>$(DEVELOPMENT_LANGUAGE)</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>Stopcard</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>$(FLUTTER_BUILD_NAME)</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>$(FLUTTER_BUILD_NUMBER)</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
</dict>
</plist>

有人可以帮我解决这些问题吗? 提前致谢

【问题讨论】:

  • 请通过 xcode 运行它,它会让您更好地了解错误
  • 嗨,我已经运行过 Xcode。我已经更新了 Xcode 中显示的错误
  • 你能把你的 info.plist 贴在这里吗?
  • 已经添加了 info.plist

标签: ios xcode flutter android-studio


【解决方案1】:

您必须为 google 添加 skAdNetworkKey,如下所示

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
<key>SKAdNetworkItems</key>
 <array>
   <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>cstr6suwn9.skadnetwork</string>
  </dict>
</array>

【讨论】:

    猜你喜欢
    • 2022-06-25
    • 2021-04-28
    • 1970-01-01
    • 2019-08-08
    • 2022-07-28
    • 2021-12-08
    • 2021-01-10
    • 1970-01-01
    • 2021-11-21
    相关资源
    最近更新 更多