cordova-plugin-fcm-with-dependecy-updated icon indicating copy to clipboard operation
cordova-plugin-fcm-with-dependecy-updated copied to clipboard

Ionic build failed with the above plugin

Open harrisreddy00 opened this issue 4 years ago • 5 comments

Error:

/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:240:80: error: expected a type

  • (void)messaging:(nonnull FIRMessaging *)messaging didReceiveMessage:(nonnull FIRMessagingRemoteMessage *)remoteMessage { ^ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:257:101: error: nullability specifier 'nonnull' conflicts with existing specifier 'nullable'
  • (void)messaging:(nonnull FIRMessaging *)messaging didReceiveRegistrationToken:(nonnull NSString *)deviceToken { ^ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:242:58: error: property 'messageID' not found on object of type '__strong id' NSLog(@"Firebase data message ID: %@", remoteMessage.messageID); ^ /Users/proj/beetexting-mobile-ionic/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:245:32: error: property 'appData' not found on object of type '__strong id' NSLog(@"%@", remoteMessage.appData); ^ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:276:31: error: no visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' [[FIRMessaging messaging] setShouldEstablishDirectChannel:NO];

/Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:278:31: error: no visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' [[FIRMessaging messaging] setShouldEstablishDirectChannel:YES]; ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/proj/platforms/ios/Beetexting/Plugins/cordova-plugin-fcm-with-dependecy-updated/AppDelegate+FCMPlugin.m:296:31: error: no visible @interface for 'FIRMessaging' declares the selector 'setShouldEstablishDirectChannel:' [[FIRMessaging messaging] setShouldEstablishDirectChannel:NO]; ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 errors generated.

ionic version: 5.4.2 cordova version: 9.0.0 cocoapods version: 1.10.1 xcode version: 12.3 macOS: macOS Big Sur

Please do the needful.

harrisreddy00 avatar Jan 12 '21 12:01 harrisreddy00

try pod repo update before add platform ios then add platform and ionic cordova prepare ios finally build

RidClick avatar Feb 02 '21 14:02 RidClick

@RidClick Thanks. Will try and update

harrisreddy00 avatar Feb 02 '21 14:02 harrisreddy00

@RidClick No luck. Did the same as suggested but still the same error.

harrisreddy00 avatar Feb 19 '21 06:02 harrisreddy00

Any update on this ?

ThilinaPrasad avatar Oct 16 '21 18:10 ThilinaPrasad

hello, any update?

indrapalijama avatar Apr 21 '22 05:04 indrapalijama