Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed: add a super class to fix this problem @interface FirebasePluginMessageReceiverManager #493

Closed
lucaele opened this issue Aug 28, 2020 · 3 comments
Labels
build issue An issue related to build process ios relates to iOS platform

Comments

@lucaele
Copy link

lucaele commented Aug 28, 2020

Hi all,
i have an error on build ios.


class 'FirebasePluginMessageReceiverManager' defined without specifying a base class [-Wobjc-root-class]
@interface FirebasePluginMessageReceiverManager
^
.../cordova-plugin-firebasex/FirebasePluginMessageReceiverManager.h:3:48: note:
add a super class to fix this problem
@interface FirebasePluginMessageReceiverManager
^
: NSObject
1 warning generated.

** BUILD FAILED **


cordova version: 9.0.0
platform ios: 5.1.1

Pod dependecies:
pod 'Google-Mobile-Ads-SDK', '~> 7.64.0'
pod 'Firebase/Core', '6.31.0'
pod 'Firebase/Messaging', '6.31.0'
pod 'Firebase/Performance', '6.31.0'
pod 'Firebase/RemoteConfig', '6.31.0'
pod 'Firebase/Crashlytics', '6.31.0'
pod 'GoogleSignIn', '5.0.2'
pod 'GoogleTagManager', '7.1.2'

Any idea to fix it? or how add a super class on project...
Thanks

@makeiteazy
Copy link

makeiteazy commented Aug 31, 2020

Hi, I have the same issue. Built with Xcode 12 beta 6.

Workaround: Add : NSObject to the interface. So change FirebasePluginMessageReceiverManager.h like this:

#import "FirebasePluginMessageReceiver.h"

@interface FirebasePluginMessageReceiverManager: NSObject
+ (void) register:(FirebasePluginMessageReceiver *)receiver;
+ (bool) sendNotification:(NSDictionary *)userInfo;
@end

After that change the build succeeds.

@dpa99c dpa99c added build issue An issue related to build process ios relates to iOS platform ready for release Something has been implemented and is awaiting release to npm labels Sep 15, 2020
@dpa99c dpa99c closed this as completed in 09e5f87 Sep 15, 2020
@dpa99c dpa99c removed the ready for release Something has been implemented and is awaiting release to npm label Sep 15, 2020
@stefanhk31
Copy link

@makeiteazy 's workaround gets the project running, but this file gets overwritten every time I run my project via capacitor. It looks like the interface still doesn't have the base class in the plugin, as it stands. Is there word of if/when this will be implemented into a new version?

I am encountering the issue on v11.0.3

@FlawaCLV
Copy link

FlawaCLV commented Mar 8, 2021

I still have this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue An issue related to build process ios relates to iOS platform
Projects
None yet
Development

No branches or pull requests

5 participants