[英]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)
you highlight a warning.... warnings should not be the problem.你突出显示一个警告......警告不应该是问题。
try this.尝试这个。
flutter clean
flutter clean
Podfile.lock
Podfile.lock
pod repo update
pod repo update
your third party lib not support armv7 arc您的第三方库不支持 armv7 arc
try this:尝试这个:
build settings
find Architectures, set the value to arm64 build settings
找到 Architectures,将值设置为 arm64build settings
find Architectures, set the value to arm64 build settings
找到 Architectures,将值设置为 arm64pod 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 之后发布的设备,不支持旧设备
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.