Flutter 颤振iOS模拟继续生成失败的Xcode

Flutter 颤振iOS模拟继续生成失败的Xcode,flutter,Flutter,刚刚安装了颤振,但颤振一直未能在iOS模拟器中打开新的项目 终端错误 Running Xcode build... └─Compiling, linking and signing... 2.2s Xcode build done.

刚刚安装了颤振,但颤振一直未能在iOS模拟器中打开新的项目

终端错误

Running Xcode build...                                                  
                                                   
 └─Compiling, linking and signing...                         2.2s
Xcode build done.                                           16.0s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    ld: unknown option: -target
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro.
我试过用颤振清洁,但不起作用

我跑去看医生,但一切似乎都很好

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale en-GB)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.3)
[✓] Connected device (1 available)

• No issues found!
请帮忙

更新日期:8月1日 跑了颤振跑-v,这是结果。但我还是无法从Flatter run启动文件。但是,Xcode可以很好地构建和运行该文件。Android Studio也是如此

[  +37 ms] Failed to build iOS app
[        ] Error output from Xcode build:
           ↳
[        ]     ** BUILD FAILED **
           
           
               The following build commands failed:
                Ld

/Users/jason/Develop/first/build/ios/Debug-iphonesimulator/Runner.app/Runne
                r normal x86_64
               (1 failure)
           
[        ] Xcode's output:
           ↳
[  +56 ms]     Command line invocation:
                   /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
                   -configuration Debug VERBOSE_SCRIPT_LOGGING=YES -workspace
                   Runner.xcworkspace -scheme Runner
                   BUILD_DIR=/Users/jason/Develop/first/build/ios -sdk
iphonesimulator
                   -arch x86_64

SCRIPT_OUTPUT_STREAM_FILE=/var/folders/1n/fywsxx0j35g060rtr5b9ff9c0000gn
                   /T/flutter_build_log_pipe.KUbRcA/pipe_to_stdout
                   FLUTTER_SUPPRESS_ANALYTICS=true
COMPILER_INDEX_STORE_ENABLE=NO
           
               Build settings from command line:
                   ARCHS = x86_64
                   BUILD_DIR = /Users/jason/Develop/first/build/ios
                   COMPILER_INDEX_STORE_ENABLE = NO
                   FLUTTER_SUPPRESS_ANALYTICS = true
                   SCRIPT_OUTPUT_STREAM_FILE =

/var/folders/1n/fywsxx0j35g060rtr5b9ff9c0000gn/T/flutter_build_log_pipe.
                   KUbRcA/pipe_to_stdout
                   SDKROOT = iphonesimulator13.6
                   VERBOSE_SCRIPT_LOGGING = YES
           
               note: Using new build system
               note: Building targets in parallel
               note: Planning build
               note: Constructing build description
               ProcessProductPackaging ""

有人知道发生了什么事吗?

没关系。我不明白为什么。擦掉我的硬盘,重新安装macOS Catalina和Xcode,现在它可以正常工作了。

Nevermind。我不明白为什么。擦掉我的硬盘,重新安装macOS Catalina和Xcode,现在它可以工作了。

所以我用Xcode运行了颤振代码的iOS部分,它确实在模拟器上运行了!(新创建的颤振应用程序)。然而,我仍然无法让它在终端上用flifter运行,不知道为什么。所以我用Xcode运行了flifter代码的iOS部分,它确实在模拟器上运行了!(新创建的颤振应用程序)。然而,我仍然无法让它在终端上运行,不知道为什么。