본문 바로가기

🐾 개발 🐾/Flutter

[Flutter] ... duplicate symbols for architecture ... 에러

반응형

This can happen when project is inside an iCloud directory, causing file duplication. There are two workarounds I see:

1- Remove duplicate files from root project. Always run find command without -delete first to make sure you're not deleting unwanted files

find . -name \*\ 2.\*
find . -name \*\ 2.\* -delete
find . -name \*\ 3.\*
find . -name \*\ 3.\* -delete
flutter clean
flutter run

2- Clean/reinstall pods, with the commands below (on flutter project root)

cd ios
pod deintegrate
cd ..
flutter clean
flutter run

 

 

https://stackoverflow.com/questions/58905933/duplicate-symbols-with-ios-build

 

Duplicate Symbols with IOS Build

I'm trying to run my Flutter app on IOS (on Android it works properly), but I'm getting the following error when I try to run it: Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Xcode

stackoverflow.com

 

반응형