简体   繁体   English

Flutter IOS 尝试在试飞时构建存档不起作用

[英]Flutter IOS build archive not working while trying to get it on Test flight

I am developing a flutter project.我正在开发一个 flutter 项目。 While I run my application on an IOS device it's working perfectly.当我在 IOS 设备上运行我的应用程序时,它运行良好。 I want to release my application in test flight for testing, when I tried to archive (Product->Archive) am got the below error.我想在测试飞行中发布我的应用程序以进行测试,当我尝试存档(产品-> 存档)时出现以下错误。

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)

I am using Xcode version 12.5.我正在使用 Xcode 版本 12.5。 错误图片

设置

you highlight a warning.... warnings should not be the problem.你突出显示一个警告......警告不应该是问题。

try this.尝试这个。

  1. in flutter project dir -> flutter clean在 flutter 项目目录 -> flutter clean
  2. in ios dir -> delete Podfile.lock在 ios 目录中 -> 删除Podfile.lock
  3. run -> pod repo update运行 -> pod repo update
  4. check in xcode your app account settings (provisioning files, certificates etc.)检查 xcode 您的应用帐户设置(配置文件、证书等)

your third party lib not support armv7 arc您的第三方库不支持 armv7 arc

try this:尝试这个:

  1. in ios dir, open runner.xcworkspace在 ios 目录中,打开 runner.xcworkspace
  2. project-> runner build settings find Architectures, set the value to arm64 project-> runner build settings找到 Architectures,将值设置为 arm64
  3. targets-> runner build settings find Architectures, set the value to arm64 targets-> runner build settings找到 Architectures,将值设置为 arm64
  4. run pod install运行pod install

this works for me, but this option will only support the devices release after iPhone 5s, and can not support old device这对我有用,但是这个选项只支持 iPhone 5s 之后发布的设备,不支持旧设备

在此处输入图像描述

You got Undefined symbols for architecture armv7 , which might be because you don't have armv7 in your Architecture defined.您得到Undefined symbols for architecture armv7 ,这可能是因为您的体系结构中没有定义armv7 Try this:尝试这个: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter无法建立IOS存档 - Flutter unable to build IOS archive 构建中缺少iOS测试飞行构建下拉? - iOS test flight build missing from builds drop down? iOS扩展和试飞 - iOS extension and Test Flight iOS-尝试使用Fabric存档时出现构建错误(Twitter) - iOS - Build error trying to archive with Fabric (Twitter) 尝试使用 flutter 构建 ios 应用程序时出现奇怪的错误 - getting weird errors while trying to build ios app using flutter Flutter:无法构建 iOS 应用程序“ARCHIVE FAILED”,为设备归档时遇到错误 - Flutter : Failed to build iOS app "ARCHIVE FAILED",Encountered error while archiving for device iOS开发人员和发行版证书在“试用飞行”中的应用程序到期 - iOS Developer and Distribution certificate expiring while app in Test Flight 在测试飞行版本中,Cloud Kit订阅不适用于生产环境 - Cloud kit subscriptions are not working with production environment in test flight build IOS: Firebase 电话认证在试飞中突然停止工作 - IOS: Firebase Phone Authentication stops working suddenly in test flight iOS FirebaseCloudMessaging通知无法在Debug / Test Flight或Release中运行 - iOS FirebaseCloudMessaging Notifications not working in Debug / Test Flight nor Release
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM