我正在开发一个颤振项目。当我在IOS设备上运行我的应用程序时,它运行得非常完美。我想在测试飞行中发布我的应用程序进行测试,当我试图存档(Product-> archive )时,我得到了以下错误。
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。
发布于 2022-01-05 07:33:58
你强调一个警告..。警告不应该是问题所在。
尝尝这个。
在颤振项目dir flutter clean
Podfile.lock
pod repo update
发布于 2022-01-05 07:57:33
您的第三方库不支持armv7弧
试试这个:
在ios dir中打开runner.xcworkspace
build settings
查找体系结构,将值设置为arm64
build settings
查找体系结构,将值设置为arm64
pod install
这对我有用,但是这个选项只支持iPhone 5s之后的设备发布,并且不能支持旧设备。
发布于 2022-10-04 11:26:43
您得到了Undefined symbols for architecture armv7
,这可能是因为您的体系结构中没有定义armv7
。试试这个:
https://stackoverflow.com/questions/70589188
复制相似问题