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

No visible @interface for 'FIRInstanceID' declares the selector 'token' in iOS #629

Open
nasersobhan opened this issue Dec 5, 2019 · 2 comments

Comments

@nasersobhan
Copy link

nasersobhan commented Dec 5, 2019

I am trying to build iso (the the app was developed in windows and we moved to iso to get the iso version) but when i run build or trying to build with xcode there is an error that stops build with the title error in FCMplugin.m file in 45

`// GET TOKEN //

  • (void) getToken:(CDVInvokedUrlCommand )command
    {
    NSLog(@"get Token");
    [self.commandDelegate runInBackground:^{
    NSString
    token = [[FIRInstanceID instanceID] token];
    CDVPluginResult* pluginResult = nil;
    pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:token];
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
    }];
    }`

I tried googling i saw people suggested to lower the firebase-core version but it did not work. can anyone please help, I am not sure what I am missing.

pod file:

# DO NOT MODIFY -- auto-generated by Apache Cordova source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target 'appname' do project 'appname.xcodeproj' pod 'Firebase/Core', '~> 6.4.0' pod 'Firebase/Auth', '~> 6.4.0' pod 'GoogleMaps', '~> 3.1.0' pod 'GoogleSignIn', '~> 4.4.0' pod 'GoogleUtilities', '~> 6.3.0' pod 'Firebase/Analytics' end

@nasersobhan nasersobhan changed the title No visible @interface for 'FIRInstanceID' declares the selector 'token' in ISO No visible @interface for 'FIRInstanceID' declares the selector 'token' in iOS Dec 7, 2019
@MiqueiasMaia
Copy link

Did u solved this issue? I'm with the same error.

@CesarRomeroArroyo
Copy link

Could anybody solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants