【问题标题】:flutter: Compiling for iOS 8.0, but module 'FBSDKCoreKit' has a minimum deployment target of iOS 9.0颤振:为 iOS 8.0 编译,但模块 'FBSDKCoreKit' 的最低部署目标为 iOS 9.0
【发布时间】:2021-03-29 23:03:47
【问题描述】:

尝试为我的颤振应用程序部署 facebook sdk 并使用 facebook 事件包。 我按照官方链接中的步骤操作: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios 然后第 4 步尝试了 facebook 事件包链接中的步骤。 https://pub.dev/packages/facebook_app_events

将此添加到我的 info.plist:

<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fb[APP_ID]</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>[APP_ID]</string>
<key>FacebookDisplayName</key>
<string>[APP_NAME]</string>

在尝试构建应用程序时出现错误,我做错了什么?

【问题讨论】:

  • “构建应用程序”时遇到的确切错误是什么?您能否用一些 Flutter 医生的输出更新您的问题并构建日志。

标签: facebook flutter dart


【解决方案1】:

您需要为您的项目提供一个全球平台。

打开 ios/Podfile

你可能会在文件的前两行看到这个

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

您需要从第二行中删除 # 并需要重新构建。如果失败,请尝试 flutter clean 并重试

这里是 ios/Podfile 的最后两行

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

【讨论】:

  • 为 iOS 8.0 编译,但模块 'FBSDKCoreKit' 的最低部署目标为 iOS 9.0:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-26
  • 2019-07-09
相关资源
最近更新 更多