flutter error: Multiple commands produce '/Users/****/build/ios/Debug-iphonesimulator/Runner.app/...

2384 단어
flutter run 실행 오류 메시지
 error: Multiple commands produce '/Users/mac/code/***build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
    1) Target 'Runner' has copy command from '/Users/mac/code/***/.ios/Flutter/engine/Flutter.framework' to
    '/Users/mac/code/***/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: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'Flutter')
    warning: The iOS Simulator deployment target is set to 5.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'TMCache')
    warning: The iOS Simulator deployment target is set to 6.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'Masonry')
    warning: The iOS Simulator deployment target is set to 5.0, but the range of supported deployment target versions for this platform is 8.0 to 12.2.99. (in target 'SDWebImage')
    warning: ignoring duplicated output file: '/Users/mac/code/gmalpha_flutter/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' in shell script build phase '[CP] Embed Pods
    Frameworks'. This warning represents an extremely serious project misconfiguration and will likely cause some shell scripts in your project to be skipped entirely, leading to other build failures or
    missing files in the build directory. This will be a hard error in the future. (in target 'Runner')
    note: Using new build systemnote: Planning buildnote: Constructing build description

솔루션
  • 구형 빌드를 사용하여 시스템을 구축합니다.ios / Runner.xcworkspace를 열고 구축 시스템을 Legacy Build System로 변경합니다.
  • 새로운 Xcode 10로 시스템을 구축합니다.항목 내비게이션 사이드바에서 ios / Runner.xcworkspace 항목을 선택합니다.홈 뷰에서 Runner 대상을 선택하고 Runner 탭을 선택합니다.단계 확장Build Phases 및 내장 프레임 목록에서 선택Embed Frameworks.클릭 - 목록에서 제거Flutter.framework(App.framework 유지)
  • 다음은 해결된 그림을 붙여볼게요.
    스크린 스냅숏 2019-07-15 오후 7.46.50.png

    좋은 웹페이지 즐겨찾기