每当我尝试在 iOS 模拟器上构建我的颤振项目时,我都会收到此错误。有时它在从 ios 文件夹中删除 Podfiles 后工作得很好,并且还在终端中使用“flutter pub cache repair”和“flutter clean”命令。我似乎无法找出问题并找到永久解决方案。
Xcode build done. 3.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._currentFrameIndex' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_CLASS_$_FLAnimatedImageView' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_METACLASS_$_FLAnimatedImageView' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._accumulator' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._loopCountdown' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._displayLink' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._loopCompletionBlock' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._shouldAnimate' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._debug_delegate' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._currentFrame' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._needsDisplayWhenImageBecomesAvailable' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._animatedImage' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
duplicate symbol '_OBJC_IVAR_$_FLAnimatedImageView._runLoopMode' in:
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView 3.o
/Users/talalalaseeri/Library/Developer/Xcode/DerivedData/Runner-bftdmqcmgdiohxcufhejdtlprqft/Build/Intermediates.no
index/Pods.build/Debug-iphonesimulator/FLAnimatedImage.build/Objects-normal/x86_64/FLAnimatedImageView.o
ld: 13 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.