gpt4 book ai didi

ios - 使用 firebase-auth 时在 ios 上构建应用程序会导致 flutter 问题

转载 作者:行者123 更新时间:2023-11-29 05:13:20 26 4
gpt4 key购买 nike

我正在制作一个使用 firestore 和 firebase_auth 的应用程序,在使用 android 时效果很好,但是当我在 ios 上构建它时,它会导致一系列问题:

 error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to
parameter of type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: passing argument to parameter 'completion' here
completion:(nullable FIRAuthDataResultCallback)completion;
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to
parameter of type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
completion:^(FIRUser *user, NSError *error) {
note: passing argument to parameter 'completion' here
completion:(nullable FIRAuthDataResultCallback)completion;
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to
parameter of type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: passing argument to parameter 'completion' here
completion:(nullable FIRAuthDataResultCallback)completion;
warning: 'fetchProvidersForEmail:completion:' is deprecated: Please use
fetchSignInMethodsForEmail:completion: for Objective-C or fetchSignInMethods(forEmail:completion:) for Swift instead. [-Wdeprecated-declarations]
fetchProvidersForEmail:email
note: 'fetchProvidersForEmail:completion:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE("Please use fetchSignInMethodsForEmail:completion: for Objective-C or "
error: incompatible block pointer types sending 'void (^)(NSError * _Nullable __strong)' to parameter of
type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
completion:^(NSError *_Nullable error) {
note: passing argument to parameter 'completion' here
completion:(nullable FIRAuthDataResultCallback)completion;
error: incompatible block pointer types sending 'void (^)(NSError * _Nullable __strong)' to parameter of
type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
completion:^(NSError *_Nullable error) {

如果需要此信息,我正在使用 firebase_auth 0.6.6。

最佳答案

我想通了这个问题。由于某种原因,这种情况发生在我身上,因为我的项目中同时使用了 firestore 和 firebase_auth ,因此对于 Android,我使用了这两个插件的一个版本,但在处理 iOS 时我需要使用这些插件的不同版本。

关于ios - 使用 firebase-auth 时在 ios 上构建应用程序会导致 flutter 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59459528/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com