Post

Replies

Boosts

Views

Activity

Xcode 15 update broke flutter iOS app: duplicate symbols (no symbols listed)
I am working on a flutter app for iOS, using Mac mini with Apple M1. The app worked fine on the simulator and real device until yesterday, when I updated Xcode to 15.0 (Due to the Sonoma 14.0 update). Now, I cannot run on a simulator or a real device, getting the following error: Could not build the precompiled application for the device. Error (Xcode): 2 duplicate symbols Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) Error launching application on XXXXXX’s iPhone. Instead of the above error, I sometimes (randomly?) get the error described here. What I tried: Verified with Flutter Doctor everything is OK (initially, the Xcode installation did not complete, missing the command line tools, but I fixed that) Upgraded flutter (3.13.6) Updated cocoa pods (1.13.0), (as instructed here, this fixed an earlier error I was getting DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead) Cleared the Xcode build and derived data, deleted flutter sub-folders & files (.symlinks, Pods, Podfile.lock, pubspec.lock) and reinstalled pod (as instructed here), and ran flutter clean Checked that Pods-Runner-frameworks has source="$(readlink -f "${source}")" Unfortunately, none of these resolved the error described above. Any help or ideas would be most welcomed!
10
3
11k
Sep ’23