相关疑难解决方法(0)

错误:找不到成员:“FirebaseAppPlatform.verifyExtends”

我收到此错误:

未找到成员:“FirebaseAppPlatform.verifyExtends”。FirebaseAppPlatform.verifyExtends(_delegate);

flutter clean
flutter pub get
pod install
Run Code Online (Sandbox Code Playgroud)

xcode dart firebase flutter flutter-dependencies

116
推荐指数
11
解决办法
15万
查看次数

无法为模拟器构建应用程序。在 iPhone 11 Pro Max 上启动应用程序时出错

我的问题是由于某种原因我无法在 iOS 模拟器上开始调试。我已经尝试了几种解决方案,我猜它以他们的方式有所帮助,但问题并没有消失,我现在很绝望。我不知道这个网站究竟是如何运作的,或者是否有任何现有的解决方案,但问题是我找不到,我需要你的帮助。

错误在这里:

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done.                                           45,6s
Failed to build iOS app
Error output from Xcode build:
?
    ** BUILD FAILED **


Xcode's output:
?
    /Users/omerugurerden/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:155:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereField:arrayContainsAny:'
            query = [query queryWhereField:fieldName arrayContainsAny:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/omerugurerden/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:157:24: error: no visible @interface for 'FIRQuery' declares the selector 'queryWhereFieldPath:arrayContainsAny:'
            query = [query queryWhereFieldPath:fieldPath arrayContainsAny:value];
                     ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/omerugurerden/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.11/ios/Classes/CloudFirestorePlugin.m:163:24: error: no visible @interface …
Run Code Online (Sandbox Code Playgroud)

debugging xcode ios ios-simulator flutter

25
推荐指数
3
解决办法
4万
查看次数

Flutter:无法为设备构建预编译的应用程序。在 iPhone 上启动应用程序时出错

我无法在 IOS 设备上运行我的 flutter 项目。

这是我在 flutter run 之后得到的。我不明白为什么。请查看下面的错误并告诉我如何解决此问题。

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: L24VC6F98D
Running Xcode build...                                                  
Xcode build done.                                            8,2s
Failed to build iOS app
Error output from Xcode build:
?
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h"
    is a member of multiple groups ("TOCropViewController" and
    "TOCropViewController"); this indicates a malformed project.  Only the
    membership in one of the groups will …
Run Code Online (Sandbox Code Playgroud)

compiler-errors ios flutter

15
推荐指数
4
解决办法
1万
查看次数

Flutter - firebase_app_check 在发布模式下无法工作,如何修复?

我在我的 flutter 应用程序中使用 firebase_app_check 。我在 Firebase 中使用 AppCheck。事实证明设置起来并不容易,文档中有很多“白点”。所以按顺序:

  1. 我在 Firebase 上启用了 AppCheck(用于 starage 和 Firestore)。
  2. 我选择“Play Integrity”(因此文档建议)作为证明提供者。
  3. 我将插件 firebase_app_check 添加到我的应用程序中。但它没有奏效。应用程序(在调试模式下)无法从 Firestore 检索数据。
  4. 然后我添加“SafetyNet”作为证明提供者。此应用程序工作后(调试模式)。
  5. 我将我的应用程序包发布到 Google Play。当我从 Google Play 下载应用程序时,它不起作用(无法从 firestore 检索数据)。我对我的应用程序包使用混淆。

为什么我的应用程序在发布模式下无法与 AppChecker 一起使用?为什么“诚信游戏”不起作用?我必须在平台级别添加代码吗?根据这个文件?像这样:

 val firebaseAppCheck = FirebaseAppCheck.getInstance()
   firebaseAppCheck.installAppCheckProviderFactory(
   SafetyNetAppCheckProviderFactory.getInstance()
 )
Run Code Online (Sandbox Code Playgroud)

或者一个插件就足够了?

我该如何修复它?

android firebase flutter google-cloud-firestore firebase-app-check

10
推荐指数
1
解决办法
2188
查看次数

如何解决 Flutter iOS 中的“Command PhaseScriptExecution failed with a nonzero exit code”

我在这个问题上浪费了将近一周的时间却毫无结果。

\n

这是错误:

\n
Failed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    ** BUILD FAILED **\n\n\nXcode\'s output:\n\xe2\x86\xb3\n    Writing result bundle at path:\n        /var/folders/fq/7j2x58m57c9bk10jg7q47krr0000gn/T/flutter_tools.vyKPSp/flutter_ios_build_temp_di\n        rGZCufm/temporary_xcresult_bundle\n\n\n    Failed to package /Volumes/ME/Projects/Flutter-Proj/app.\n    Command PhaseScriptExecution failed with a nonzero exit code\n    note: Building targets in dependency order\n    warning: Run script build phase \'Create Symlinks to Header Folders\' will be run during every\n    build because it does not specify any outputs. To address this warning, either add output\n    dependencies to the script phase, or configure …
Run Code Online (Sandbox Code Playgroud)

xcode ios flutter

10
推荐指数
1
解决办法
2万
查看次数

如何修复在 macOS 中运行 flutter 时命令 PhaseScriptExecution 失败并出现非零退出代码的问题?

我正在开发一个颤振应用程序。我最近转移到 macOS,从那时起就无法运行该应用程序。其他应用程序运行良好,因此我认为错误出在该应用程序的代码中。也许由于同样的原因,我无法进行构建。

\n

这是输出flutter doctor

\n
[\xe2\x9c\x93] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G73, locale en-US)\n    \xe2\x80\xa2 Flutter version 1.20.1 at /Users/bhawna/dev/flutter\n    \xe2\x80\xa2 Framework revision 2ae34518b8 (4 days ago), 2020-08-05 19:53:19 -0700\n    \xe2\x80\xa2 Engine revision c8e3b94853\n    \xe2\x80\xa2 Dart version 2.9.0\n\n[\xe2\x9c\x97] Android toolchain - develop for Android devices\n    \xe2\x9c\x97 Unable to locate Android SDK.\n      Install Android Studio from: https://developer.android.com/studio/index.html\n      On first launch it will assist you in installing the Android SDK components.\n      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for …
Run Code Online (Sandbox Code Playgroud)

xcode ios flutter

8
推荐指数
3
解决办法
3万
查看次数