flutter ios 应用程序在 xcode 上运行,但无法在 vscode 和 android studio 上运行

2024-04-16

我的应用程序在 android 和 ios 上完美运行(仅使用 xcode)。由于某种原因,当我使用 vsCode 或 Android studio 运行它时,它返回一个错误。

Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Xcode build done.                                           1206.8s
Failed to build iOS app
Error output from Xcode build:
↳
    2021-07-13 18:28:30.237 XCBBuildService[1870:62140] Failed to remove: /Users/macUser/Library/Developer/Xcode/DerivedData/Runner-eexwsmocuanrnufgsdyvbcjnzgqw/Build/Intermediates.noindex/XCBuildData/c98de69306103c117579f3f2cbe3019a-desc.xcbuild: unlink(/Users/macUser/Library/Developer/Xcode/DerivedData/Runner-eexwsmocuanrnufgsdyvbcjnzgqw/Build/Intermediates.noindex/XCBuildData/c98de69306103c117579f3f2cbe3019a-desc.xcbuild): No such file or directory (2)
    ** BUILD FAILED **
Xcode's output:
↳
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/filters/client_channel/xds/xds_channel_secure.cc:34:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/writing.cc:21:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/context_list.h:26:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/internal.h:109:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_chttp2_ping_queue
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/internal.h:110:52: note: type is not C-compatible due to this default member initializer
      grpc_closure_list lists[GRPC_CHTTP2_PCL_COUNT] = {};
                                                       ^~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/internal.h:112:3: note: type is given name 'grpc_chttp2_ping_queue' for linkage purposes by this typedef declaration
    } grpc_chttp2_ping_queue;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/tls/tls_security_connector.cc:21:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/tls/tls_security_connector.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/tls/tls_security_connector.cc:32:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/ssl/ssl_credentials.h:25:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/ssl/ssl_security_connector.h:60:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_ssl_server_config
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/ssl/ssl_security_connector.h:61:51: note: type is not C-compatible due to this default member initializer
      tsi_ssl_pem_key_cert_pair* pem_key_cert_pairs = nullptr;
                                                      ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/security_connector/ssl/ssl_security_connector.h:66:3: note: type is given name 'grpc_ssl_server_config' for linkage purposes by this typedef declaration
    } grpc_ssl_server_config;
      ^
    2 warnings generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/tls/tls_credentials.cc:21:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/tls/tls_credentials.h:26:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/server/secure_server_credentials.cc:26:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/client/secure_credentials.cc:19:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/client/secure_credentials.h:29:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_create_auth_context.cc:24:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.cc:19:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/server/secure_server_credentials.cc:26:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/client/secure_credentials.cc:19:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/client/secure_credentials.h:29:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_create_auth_context.cc:24:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.cc:19:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/cpp/common/secure_auth_context.h:25:
    In file included from /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/context/security_context.h:28:
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/gRPC-C++/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/FirebaseFirestore/Firestore/Source/API/FIRLoadBundleTask.mm:41:29: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
        _bytesLoaded = progress.bytes_loaded();
                     ~ ~~~~~~~~~^~~~~~~~~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/FirebaseFirestore/Firestore/Source/API/FIRLoadBundleTask.mm:43:28: warning: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'NSInteger' (aka 'int') [-Wshorten-64-to-32]
        _totalBytes = progress.total_bytes();
                    ~ ~~~~~~~~~^~~~~~~~~~~~~
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/FirebaseFirestore/Firestore/Source/API/FIRLoadBundleTask.mm:97:17: warning: implicit conversion loses integer precision: 'firebase::firestore::api::LoadBundleTask::LoadBundleHandle' (aka 'long long') to 'FIRLoadBundleObserverHandle' (aka 'int') [-Wshorten-64-to-32]
      return _task->Observe(std::move(core_observer));
      ~~~~~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 warnings generated.
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'FMDB' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'BoringSSL-GRPC' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'leveldb-library' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'abseil' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'AppAuth' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'gRPC-Core' from project 'Pods')
    /Users/macUser/Work/Mazaya/mazaya/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'gRPC-C++' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
Exited (sigterm)

这是我运行 flutter doctor -v 时得到的结果

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-BH)
    • Flutter version 2.2.3 at /Users/alialqallaf/Developer/flutter
    • Framework revision f4abaa0735 (12 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/alialqallaf/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      ???? https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      ???? https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      ???? https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      ???? https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.58.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

这是我的 pubspec.yaml 文件

name: mazaya
description: A new Flutter project.

publish_to: 'none' # Remove this line if you wish to publish to pub.
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  apple_sign_in_safety: ^0.0.6
  cached_network_image: ^3.0.0
  carousel_pro: ^1.0.0
  cloud_firestore: ^2.2.0
  cupertino_icons: ^1.0.2
  firebase_auth: ^1.2.0
  firebase_core: ^1.2.0
  firebase_crashlytics: ^2.0.7
  firebase_storage: ^8.1.0
  flutter_svg: ^0.22.0
  get: ^4.1.4
  google_sign_in: ^5.0.3
  intl: ^0.17.0
  modal_progress_hud_nsn: ^0.1.0-nullsafety-1
  pdf: ^3.3.0
  percent_indicator: ^3.0.1
  responsive_framework: ^0.1.0
  share_plus: ^2.1.2
  url_launcher: ^6.0.8

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: ^0.9.0
  flutter_native_splash: ^1.1.8+4

flutter_icons:
  android: true
  ios: true
  image_path: "assets/dev/mazaya.png"
  adaptive_icon_background: "#FFFFFF"
  adaptive_icon_foreground: "assets/dev/mazaya_adaptive.png"

flutter_native_splash:
  color: "#FFFFFF"
  image: "assets/dev/splash.png"
  android: true
  ios: true

flutter:
  uses-material-design: true

  assets:
    - assets/svg/
    - assets/images/
  fonts:
    - family: OpenSans
      fonts:
        - asset: assets/fonts/OpenSans-Regular.ttf
        - asset: assets/fonts/OpenSans-Bold.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

我尝试了很多解决方案,例如

rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ios/Pods  
rm ios/Podfile 
sudo xattr -r -d com.apple.FinderInfo .   
flutter pub cache repair 
rm ios/Flutter/Flutter.podspec  
pod deintegrate && rm Podfile.lock && pod install  
flutter clean

我还将频道从主频道更改为稳定频道,但这些都不起作用。 有人可以帮我吗?


问题已经解决了!

I changed the configurations of the project on Xcode as it is in the image below

我从以下位置获取了图像:https://github.com/flutter/flutter/issues/56085#issuecomment-645088488 https://github.com/flutter/flutter/issues/56085#issuecomment-645088488

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

flutter ios 应用程序在 xcode 上运行,但无法在 vscode 和 android studio 上运行 的相关文章

  • iPhone X - 设置主页指示器周围区域的颜色

    当我尝试将工作表与 iPhone X 的安全区域对齐时 我对 Xcode 还很陌生 它在工作表下方留下了一个透明区域 有没有办法设置该区域的填充而不扩展纸张或在安全区域之外对齐 这是我的小扩展 如果有人可以建议改进以不通过 幻数 标签访问添
  • 在 iOS 13 中推送 UIViewController 会导致其与状态栏重叠

    请注意 该项目是在 Xcode 10 中创建的 我最近升级到 Xcode 11 发生了这种情况 我有一个 UINavigationController 来推动视图控制器 初始视图控制器看起来不错 但是当我通过推动另一个视图控制器来连接它时
  • Swift 3 / Xcode 8 升级 - 工作副本错误导致 100 个 DerivedData 文件丢失

    我刚刚升级到 XCode 和 Swift 的最新 Beta 版本 但使用转换器后 我的应用程序项目现在有超过 200 个构建时黄色错误 所有错误均指出 projectDirectoy DerivedData XXXXXXXXX XXXX X
  • 主线程检查器:在后台线程上调用 UI API iOS 11 Xcode 9 GM Seed

    任何人都可以帮助我调试这个问题 从我开始使用 Xcode 9 GM 种子和 iOS 11 GM 种子开始 我的代码在控制台中向我发出警告 2017 09 18 16 22 52 872716 0530 359 20158 reports M
  • Dart json.encode 返回 json 字符串,其中键值不带引号

    我正在尝试将字典转换为 json 字符串 但是我没有得到任何字符串的引号 我正在使用 dart 2 这是我所拥有的 var resBody resBody email email protected cdn cgi l email prot
  • Dart:当两个或多个任务等待同一个 Future 时会发生什么

    在 Dart 中 当两个或多个任务等待同一个 Future 时 当 Future 完成时 任务是否按照执行等待的顺序获得通知 运行 即第一个执行等待的任务是第一个运行的 这段代码保证输出2 int res 0 Future
  • Xcode 4.x - 使其指向有问题的崩溃行

    每次 Xcode 崩溃时 它都会指向 main m 上的这一行 int retVal UIApplicationMain argc argv nil AppController 我知道 Xcode 4 调试与 3 x 相比很糟糕 但是我如何
  • 在 Swift 中获取 UIPickerView 控件的选定值

    如何在 Swift 中获取 UIPickerView 控件的选定值 我尝试过这样的事情 labelTest text Spinner1 selectedRowInComponent 0 description 但这仅返回选定的索引 我需要这
  • 如何在 Flutter 中使用函数创建动态 TabBarView/ 渲染新 Tab?

    所以我学习flutter有一段时间了 就卡在这个了 抱歉 如果这是一个新手问题 我目前正在尝试构建类似卡片选项卡的东西 信息和小部件将存储在卡中 想象一下像 Tinder 这样的东西 他们有多个卡片堆 并且左右滑动即可导航 我计划创建它 但
  • SwiftUI 模态视图

    从任何类或结构中模态显示 SwiftUI 视图的最佳方式是什么 我使用 UIKit 中的 UIHostingController 有没有更好的方法只使用 SwiftUI 来做到这一点 带有用于呈现 SwiftUI 视图的按钮的 Conten
  • 从框架禁用 Xcode 中的警告

    我已经将 Three20 项目导入到我的项目中 当我使用 iOS 5 升级到 Xcode 4 2 时 项目中出现了一堆警告 我不关心它们 但它们会产生很大的噪音 而且现在很容易错过我的项目中的任何真正的警告 有没有办法禁用这些特定库的警告
  • Flutter Redux 和 Hook。如何像react一样观察useEffect内部变量实例的变化?

    我是 flutter 新手 试图观察像 React Native 这样处于减速器状态的变量 count 我使我的 redux 和 hook 工作完美 屏幕上的变量计数发生变化 但如果我更改操作 则永远不会再次调用 useEffect 仅一次
  • Xcode 8:因特性而异,改变所有尺寸类别的布局

    我正在尝试使用 xcode 8 2 1 上的 very for Traits 功能 但是当我使用 Vary for Traits 更改一个尺寸类的布局 然后在完成后 完成变化 时 它实际上正在更改每个尺寸的布局我的故事板中的课程 例如我尝试
  • NSMutableAttributedString 的自动换行

    我有 NSMutableAttributedString 并且字符串很长 我想在 UIlabel 上显示它时进行自动换行 如果是 NSString 我会继续做这样的事情 动态 UILabel 截断文本 https stackoverflow
  • Google Play 商店中不支持的设备 - Flutter

    我已将我的应用程序上传到谷歌商店 但我的一些朋友无法安装它 他们得到 您的设备与此版本不兼容 我已经检查了sdk 屏幕尺寸和权限要求 也将uses features required设置为false 但仍然有一些设备无法安装它 我在游戏控制
  • 使用 Xcode 5 在装有 iOS 5.1.1 的设备中运行 iOS 应用程序

    我正在尝试在运行 iOS 5 1 1 的 iPad 上安装 iOS 应用程序 当我使用带有开发配置文件的 Xcode 启动它时 出现以下错误 Xcode 无法安装或启动支持 64 位的应用程序 运行 iOS 6 0 之前版本的设备上的架构
  • Flutter如何使用ListTile Threeline

    Flutter时使用ListTile ThreeLines 不知道如何使用ThreeLine import package flutter material dart void main gt runApp MyApp class MyAp
  • Flutter Firestore 日期

    我知道这是重复的 但由于我无法找到正确的方法 所以请不要将其标记为重复 我想将日期类型正确设置为Firestore扑腾中 我试过DateTime now 但是当我检索它时错误说 不支持的值 FIRTimestamp FIRTimestamp
  • iOS 6 和 Xcode 5.0 的图标光泽度

    在使用 iOS6 和 XCode 5 时 我真的很困惑如何去除图标的光泽 我已经阅读了这些问题 去除 iOS 4 3 中图标的光泽效果 https stackoverflow com questions 8740387 removing g
  • Flutter中向TabView添加选项卡标签

    我正在尝试扩展作为答案提出的 TabViewhere https stackoverflow com questions 50036546 how to create a dynamic tabbarview render a new ta

随机推荐