【问题标题】:Flutter ios archive app undefined symbolsFlutter ios归档应用未定义符号
【发布时间】:2021-04-11 12:54:54
【问题描述】:

我正在尝试在 Apple Store 上存档一个应用程序,但我收到此错误,在调试中一切正常。我该如何解决?

架构 armv7 的未定义符号: “OBJC_CLASS$_MDFTextAccessibility”,引用自: MDCTypography.o 中的 objc-class-ref “_MDFInsetsFlippedHorizo​​ntally”,引用自: -[MDCFloatingButton insetBoundsForBounds:] 在 MDCFloatingButton.o “_MDFRectFlippedHorizo​​ntally”,引用自: -[MDCAlertControllerView layoutHorizo​​ntalButtons:actionSize:] 在 MDCAlertControllerView+Private.o - [MDCAlertControllerView layoutVerticalButtons:] 在 MDCAlertControllerView+Private.o - [MDCItemBarFlowLayout flippedAttributesFromAttributes:] 在 MDCItemBar.o ld:未找到架构 armv7 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) 显示所有消息 未定义符号:OBJC_CLASS$_MDFTextAccessibility 未定义符号:_MDFInsetsFlippedHorizo​​ntally 未定义符号:_MDFRectFlippedHorizo​​ntally

谢谢!

我的 pod 安装

我的 pod 文件

我的解决方案中的 Pod: enter image description here

【问题讨论】:

    标签: ios swift flutter


    【解决方案1】:

    转到构建设置搜索有效架构:

    从列表中删除 armv7

    如果你使用的是 Xcode 版本 > 12.0 那么去项目或目标 -> Build Settings -> Excluded Architecture

    然后添加 armv7

    如果上述方法不起作用然后将您的运行设置为 Any iOS Device(arm64)

    现在存档您的构建。

    【讨论】:

    • 您好,感谢您的回复,我尝试过但收到同样的错误
    • 您是否在使用任何名为 MDC 或 MDF 的 pod 或库?如果是,那么选择该框架在回答这些库时做同样的提及。还有
    • 据我了解mdf无非就是flutter material design
    • 请检查您的 pod,或者您可以在代码中添加 pod 屏幕截图。
    • 不是 pod 文件。在 Flutter iOS 项目中添加 pod 的屏幕截图。
    【解决方案2】:

    将 MaterialComponents pod 的参数 iOS Deployment Target 设置为 iOS 11.0 https://github.com/jonasbark/flutter_stripe_payment/issues/217

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-16
      • 2021-02-18
      • 2021-07-25
      • 2023-02-03
      • 2021-01-08
      • 1970-01-01
      • 2015-12-04
      相关资源
      最近更新 更多