【发布时间】:2019-03-03 03:41:43
【问题描述】:
我正在尝试使用 Xcode iPhone Simulator 模拟我的 Flutter 应用程序,但出现此错误。在升级 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.
使用:
- macOS 10.13.6 (17G65)
- Android Studio 3.2 Build #AI-181.5540.7.32.5014246,于 2018 年 9 月 18 日构建
- Xcode 10.0 (10A255)
- Xcode 模拟器 10.0 (SimulatorApp-869.5 CoreSimulator-572.2)
【问题讨论】:
标签: xcode macos android-studio flutter