Я пытаюсь смоделировать свое приложение Flutter с помощью Xcode iPhone Simulator и получаю эту ошибку. Перед обновлением Android Studio и Xcode он работал нормально.
Launching lib/main.dart on iPhone X in debug mode...
Starting Xcode build...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: Multiple commands produce '/Users/User/AndroidStudioProjects/my_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' has copy command from '/Users/User/AndroidStudioProjects/my_app/ios/Flutter/Flutter.framework' to '/Users/User/AndroidStudioProjects/my_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
warning: ignoring duplicated output file: '/Users/User/AndroidStudioProjects/my_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone X.
С использованием:





Должен быть исправлен в канале master
https://github.com/flutter/flutter/issues/20685#issuecomment-421511890
Workarounds
There are two workarounds:
- Option 1: Use the legacy build system . As noted by @gi097, open
ios/Runner.xcworkspace, and change the build system toLegacy Build System.- Option 2: Use the new Xcode 10 build system.
- Open
ios/Runner.xcworkspace- Select the
Runnerproject in the project navigator sidebar.- In the main view, select the
Runnertarget, then select theBuild Phasestab.- Expand the
Embed Frameworksphase and selectFlutter.frameworkfrom the embedded frameworks list.- Click
-to removeFlutter.frameworkfrom the list (be sure to keepApp.framework).