问题是我将“ pod'Firebase'”添加到Podfile并尝试运行我的应用程序。我添加了GoogleService-Info.plist,并尝试将我的应用添加到Firebase。如何解决?
Xcode's output:
↳
In file included from
/AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTUploader.m:17:
//AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/GDTCCTUploader.h:19:9: fatal error: 'GoogleDataTransport/GDTUploader.h' file not found
#import <GoogleDataTransport/GDTUploader.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from //AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTNanopbHelpers.m:17:
//AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/GDTCCTNanopbHelpers.h:19:9: fatal error: 'GoogleDataTransport/GDTStoredEvent.h' file not found
#import <GoogleDataTransport/GDTStoredEvent.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from //AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/GDTCCTPrioritizer.m:17:
//AndroidStudioProjects/wts101/ios/Pods/GoogleDataTransportCCTSupport/GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/GDTCCTPrioritizer.h:19:9: fatal error: 'GoogleDataTransport/GDTClock.h' file not found
#import <GoogleDataTransport/GDTClock.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
//AndroidStudioProjects/wts101/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m:20:9: fatal error: 'GoogleDataTransport/GDTConsoleLogger.h' file not found
#import <GoogleDataTransport/GDTConsoleLogger.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ld: framework not found FirebaseCoreDiagnostics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build systemnote: Planning buildnote: Constructing build description
答案 0 :(得分:2)
您确定您在.xcworkspace文件中吗? 这似乎是由打开.xcodeproj文件而不是.xcworkspace引起的,因此无法建立所需的pod。
答案 1 :(得分:1)
尝试使用广告连播更新。 pod文件可能已更新,并且您正在运行旧版本。
答案 2 :(得分:0)
问题可能出在pod文件中, 为我工作以取代:
flutter_install_ios_engine_pod(File.realpath(_FILE_))
具有:
flutter_install_all_ios_pods File.dirname(File.realpath(_FILE_))
您还可以删除podfile并运行“ flutter create”。 (flutter将为您重新生成新的podfile)
答案 3 :(得分:0)
我正在使用android studio