文件 /roject/Build/Products/Debug-iphoneos/libQuickDialog.a 中缺少必需的架构 arm64

Missing required architecture arm64 in file /roject/Build/Products/Debug-iphoneos/libQuickDialog.a

我需要为我的项目设置 arm64。

我配置了构建设置,但项目显示许多错误,例如:

d: warning: ignoring file /Users/User/Library/Developer/Xcode/DerivedData/Prj/Build/Products/Debug-iphoneos/libQuickDialog.a, missing required architecture arm64 in file

/Users/User/Library/Developer/Xcode/DerivedData/Prj/Build/Products/Debug-iphoneos/libQuickDialog.a (2 slices) Undefined symbols for architecture arm64:

"_OBJC_CLASS_$_QRadioElement", referenced from: objc-class-ref in DataViewController.o
_OBJC_CLASS_$_QEntryElement", referenced from: objc-class-ref in DataCViewController.o objc-class-ref in DataViewController.o
"_OBJC_CLASS_$_QDecimalElement", referenced from:

请帮忙!

解决方案是在外部项目中设置arm64。它有两个目标,当必须在两个目标上都配置时,我只在其中一个上设置它。