【问题标题】:Flutter IOS build archive not working while trying to get it on Test flightFlutter IOS构建存档在尝试进行测试飞行时无法正常工作
【发布时间】:2022-01-05 07:27:43
【问题描述】:

我正在开发一个颤振项目。当我在 IOS 设备上运行我的应用程序时,它运行良好。我想在试飞中发布我的应用程序进行测试,当我尝试存档(产品->存档)时出现以下错误。

Undefined symbols for architecture armv7:
  "_kServiceInfoFileType", referenced from:
      -[FIRDynamicLinks configureDynamicLinks:] in FIRDynamicLinks.o
  "_OBJC_CLASS_$_FIRComponentType", referenced from:
      objc-class-ref in FIRDynamicLinks.o
  "_OBJC_CLASS_$_FIRDependency", referenced from:
      objc-class-ref in FIRDynamicLinks.o
  "_FIRFirebaseVersion", referenced from:
      -[FIRDynamicLinks checkForPendingDynamicLink] in FIRDynamicLinks.o
      -[FIRDynamicLinks dynamicLinkInternalFromUniversalLinkURL:completion:] in FIRDynamicLinks.o
      -[FIRDynamicLinks resolveShortLink:completion:] in FIRDynamicLinks.o
      +[FIRDynamicLinks genericDiagnosticInformation] in FIRDynamicLinks.o
  "_FIRLogError", referenced from:
      _FDLLog in FDLLogging.o
  "_OBJC_CLASS_$_FIRComponent", referenced from:
      objc-class-ref in FIRDynamicLinks.o
  "_FIRLogNotice", referenced from:
      _FDLLog in FDLLogging.o
  "_kServiceInfoFileName", referenced from:
      -[FIRDynamicLinks configureDynamicLinks:] in FIRDynamicLinks.o
  "_FIRLogInfo", referenced from:
      _FDLLog in FDLLogging.o
  "_FIRLogWarning", referenced from:
      _FDLLog in FDLLogging.o
  "_OBJC_CLASS_$_FIRApp", referenced from:
      objc-class-ref in FIRDynamicLinkComponentsKeyProvider.o
      objc-class-ref in FIRDynamicLinks.o
  "_FIRLogDebug", referenced from:
      _FDLLog in FDLLogging.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我使用的是 Xcode 版本 12.5.

【问题讨论】:

  • 不要将错误发布为屏幕截图。改为粘贴为文本。

标签: ios flutter


【解决方案1】:

您突出显示警告......警告不应该是问题。

试试这个。

  1. 在颤振项目目录中->flutter clean
  2. 在 ios 目录中 -> 删除 Podfile.lock
  3. 运行->pod repo update
  4. 在 xcode 中检查您的应用帐户设置(配置文件、证书等)

【讨论】:

  • 感谢@Raegtime 的回复。但它不起作用。
【解决方案2】:

您的第三方库不支持 armv7 arc

试试这个:

  1. 在 ios 目录中,打开 runner.xcworkspace
  2. project-> runner build settings 找到 Architectures,将值设置为 arm64
  3. targets-> runner build settings 找到 Architectures,将值设置为 arm64
  4. 运行pod install

这对我有用,但是这个选项只支持iPhone 5s之后发布的设备,不支持旧设备

【讨论】:

  • 我只能打开Runner.xcodeproj,无法打开runner.xcworkspace。怎么做?
  • 你能找到 Xcode 所附图片中标记的女巫吗?
  • 请看我在问题中更新的图片。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-09-22
  • 2012-03-02
  • 2011-11-14
  • 2021-04-01
  • 2014-07-12
  • 1970-01-01
  • 2021-08-02
相关资源
最近更新 更多