Xcode 10中的FIRMessagingTopicOperationCompletion中的“预期类型”错误

时间:2019-01-11 12:03:47

标签: objective-c

我在使用FirebaseMessaging时遇到麻烦。完成pod更新并编译了项目后,我遇到了2个错误;

  1. 在FIRMessagingTopicOperationCompletion中出现类型错误

    • (instancetype)initWithTopic:(NSString *)topic                  操作:(FIRMessagingTopicAction)操作                   令牌:(NSString *)令牌                 选项:(NSDictionary *)选项          checkinService:(FIRMessagingCheckinService *)checkinService              完成:(FIRMessagingTopicOperationCompletion)         完成{
      if(self = [super init]){_topic =主题; _action =操作;
      _token =令牌;
      _options =选项;
      _checkinService = checkinService;
      _completion =完成; _isExecuting =否;
      _isFinished =否;
      }
      返回自我 }
  2. 预期一种类型 FIRMessagingTopicOperation.h

感谢您的帮助,

0 个答案:

没有答案