升级Firebase核心后,IOS颤动构建失败 [英] flutter Ios build fails after upgrading firebase core

查看:59
本文介绍了升级Firebase核心后,IOS颤动构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Flutter应用程序,可以在Firebase Core(版本 0.4.0 )上正常工作.我将firebase_core升级到版本 0.5.0 ,并根据迁移进行了所有更改.在该ios构建后出现以下错误

I had a flutter app which was working fine with firebase core (version 0.4.0). I upgraded the firebase_core to version 0.5.0 and did all changes as per the migration. After that ios build is giving following error

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
 
Running Xcode build...                                                  
                                                   
Xcode build done.                                           95.9s
Failed to build iOS app
Error output from Xcode build:
↳
    AssertMacros: amdErr = AMDeviceConnect(tmpDevice) == 0 ,  file:
    /BuildRoot/Library/Caches/com.apple.xbs/Sources/MobileDevice/MobileDevice-1190.100.2.1/Source/AMDevicePowerAssertion.c, line: 224, value: -402653083
    ** BUILD FAILED **


Xcode's output:
↳
    <module-includes>:1:1: error: umbrella header for module 'GoogleUtilities' does not include header 'GULLoggerCodes.h' [-Werror,-Wincomplete-umbrella]
    #import "Headers/GoogleUtilities-umbrella.h"
    ^
    1 error generated.
    In file included from /Users/yogesh/projects/mobile-flutter/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m:24:
    /Users/yogesh/projects/mobile-flutter/ios/Pods/FirebaseCoreDiagnostics/GoogleUtilities/Logger/Private/GULLogger.h:22:9: fatal error: could not build module
    'GoogleUtilities'
    #import <GoogleUtilities/GULLoggerLevel.h>
     ~~~~~~~^
    2 errors generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

它在android中运行良好,即使从xcode构建ios构建也可以正常运行.它从命令行构建和运行失败( flutter run )

It is running fine in android and even building ios build from xcode also works fine. Its build and run from command line which fails (flutter run)

以下是我的pubspec文件,其中包含firebase依赖项

Following is my pubspec file containing firebase dependency

dependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.5.0
  firebase_auth: ^0.18.0+1
  cloud_firestore: ^0.14.0+2
  sqflite:
  path:
  progress_dialog: ^1.2.4

我无法理解是由于库错误还是我这边的某种原因,因为它似乎是lib错误,但是从xcode构建的android和ios完全可以正常工作.

i am not able to understand is it because of library error or something from my side because it seems lib error but android and ios build from xcode works totally fine.

推荐答案

运行命令

干净整洁

然后重新运行该应用程序对我有用.

And then re-run the application works for me.

这篇关于升级Firebase核心后,IOS颤动构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆