![](/img/trans.png)
[英]Flutter build ios error: Encountered error while building for device
[英]Flutter build iOS error : Encountering error while build flutter app in iOS device
我正在尝试在直接在 android studio 上运行的 iOS 设备中构建 flutter 应用程序,但它在下面提示我这个错误:
运行 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>
有人可以帮助我解决这些问题吗? 提前致谢
你必须像下面这样为谷歌添加 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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.