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 today, when I updated Xcode to 15.0.
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:
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
)Unfortunately, none of these resolved the error described above.
Any help or ideas would be most welcomed!
I have done the following, and I guess one or more have resolved this:
Cycle inside Runner; building could produce unreliable results. Cycle details: → Target 'Runner': ExtractAppIntentsMetadata ○ Target 'Runner' has copy command from
, so I in Xcode>Targets>Runner>Build Phases, I dragged "Embed Framework", "[CP] Embed Pods Frameworks", and "Embed App Extentions" to be before "Run Script" as instructed hereI can now build and run the app using Xcode 15 on a real device (iOS 16.7). Haven't tried yet on a simulator