'Multiple command produce "Runner"

After integrating firebase and running the project builds but throws this specific error. I tried to change the 'Runner's' build system to legacy in XCode but still throws this error.

Error (Xcode): Multiple commands produce
'/Users/niteshpoudel/StudioProjects/second_
hand_books_buy_sell/build/ios/Debug-iphones
imulator/Runner.app/Runner':
1) Target 'Runner' has copy command from
'/Users/niteshpoudel/StudioProjects/second_
hand_books_buy_sell/ios/Runner' to
'/Users/niteshpoudel/StudioProjects/second_
hand_books_buy_sell/build/ios/Debug-iphones
imulator/Runner.app/Runner'
2) Target 'Runner' has link command with
output
'/Users/niteshpoudel/StudioProjects/second_
hand_books_buy_sell/build/ios/Debug-iphones
imulator/Runner.app/Runner'

Could not build the application for the
simulator.
Error launching application on iPhone 13.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source