Cordova-plugin-firebase: Undefined symbols for architecture arm64

Created on 17 Nov 2018  Â·  23Comments  Â·  Source: arnesson/cordova-plugin-firebase

Describe the bug
NOt able to build ionic application after updating the plugin.

Console Logs
Undefined symbols for architecture arm64:
"_GULLoggerInitializeASL", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLoggerEnableSTDERR", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULSwizzler", referenced from:
objc-class-ref in GoogleAppMeasurement(UIViewController+APMScreenClassName_bb34840e14481f32c5ecb9ffcac15bff.o)
objc-class-ref in FirebasePerformance(FPRSelectorInstrumentor_43661c322536eae9342dbd4edb53bf7b.o)
objc-class-ref in FirebasePerformance(FPRProxyObjectHelper_cae8c79ce5179c4587d285c87421f26f.o)
"_GULLogInfo", referenced from:
___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement(UIViewController+APMScreenClassName_bb34840e14481f32c5ecb9ffcac15bff.o)
"_GULLoggerForceDebug", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_kGULNetworkHTTPStatusCodeNotModified", referenced from:
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_kGULNetworkHTTPStatusCodeNotFound", referenced from:
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_kGULNetworkHTTPStatusCodeCannotAcceptTraffic", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_GULLogWarning", referenced from:
-[APMUserDefaults objectForKey:] in GoogleAppMeasurement(APMUserDefaults_cec267d1ff21df5a0ffda1a71af1431f.o)
-[APMUserDefaults setObject:forKey:] in GoogleAppMeasurement(APMUserDefaults_cec267d1ff21df5a0ffda1a71af1431f.o)
-[APMUserDefaults synchronize] in GoogleAppMeasurement(APMUserDefaults_cec267d1ff21df5a0ffda1a71af1431f.o)
+[APMMeasurement sharedInstance] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement(UIViewController+APMScreenClassName_bb34840e14481f32c5ecb9ffcac15bff.o)
"_kGULNetworkHTTPStatusNoContent", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_GULLoggerRegisterVersion", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_kGULNetworkHTTPStatusCodeUnavailable", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_kGULNetworkHTTPStatusOK", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_GULLogBasic", referenced from:
-[APMASLLogger logMessage:logTag:messageCode:withLogLevel:] in GoogleAppMeasurement(APMASLLogger_b06c35e24aea4d3ad666632e11e79ef6.o)
_FIRLogBasic in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULObjectSwizzler", referenced from:
objc-class-ref in FirebasePerformance(FPRObjectInstrumentor_e851288d6b6849d0b0294fa10cb31cfe.o)
objc-class-ref in FirebasePerformance(FPRNetworkTrace_f6900b74cf65074de701b7de7866f471.o)
objc-class-ref in FirebasePerformance(FPRNSURLConnectionInstrument_e1f5d400ad96be0ff646f570493cefd7.o)
"_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
objc-class-ref in FirebaseInstanceID(FIRMessagingLog_831659faf16f8906538fbfc3d5822ecc.o)
objc-class-ref in FirebaseCoreDiagnostics(FIRDiagnostics_afb9975b7573ce8caa0e4380e6bfbe31.o)
objc-class-ref in FirebaseAuth(FIRAuth.o)
objc-class-ref in FirebaseAuth(FIRAuthAPNSTokenManager.o)
objc-class-ref in FirebaseAuth(FIRAuthAppDelegateProxy.o)
objc-class-ref in FirebaseAuth(FIRAuthDefaultUIDelegate.o)
objc-class-ref in FirebaseRemoteConfig(RCNConfigSettings_32ebbc1ad7e48275f60b4ddc4a3b6e39.o)
...
"_OBJC_CLASS_$_GULMutableDictionary", referenced from:
objc-class-ref in GoogleAppMeasurement(APMRemoteConfig_a87cea1e5d19294f87a4448795cd24c6.o)
objc-class-ref in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
"_OBJC_CLASS_$_GULNetwork", referenced from:
objc-class-ref in GoogleAppMeasurement(APMAnalytics_f5f2b01aed09e7d23917a3e8a400242e.o)
objc-class-ref in GoogleAppMeasurement(APMMeasurement_a76ff61c6b4ca85ef91462a646f323a0.o)
objc-class-ref in GoogleAppMeasurement(APMAppDelegateInterceptor_d25c2dc381ddbd5008199366846aae05.o)
objc-class-ref in FirebaseCoreDiagnostics(FIRClearcutLogger_45763904baa6658ff86b47cac2ab23e7.o)
"_GULIsLoggableLevel", referenced from:
-[APMMonitor isLoggableLevel:] in GoogleAppMeasurement(APMMonitor_405c5a637e87914c89c37652996d219d.o)
"_GULLogError", referenced from:
+[APMAnalytics startWithAppID:origin:options:] in GoogleAppMeasurement(APMAnalytics_f5f2b01aed09e7d23917a3e8a400242e.o)
-[APMUserDefaults synchronize] in GoogleAppMeasurement(APMUserDefaults_cec267d1ff21df5a0ffda1a71af1431f.o)
"_GULSetLoggerLevel", referenced from:
-[APMMonitor setDebugModeEnabled:] in GoogleAppMeasurement(APMMonitor_405c5a637e87914c89c37652996d219d.o)
_FIRSetLoggerLevel in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULReachabilityChecker", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessaging.o)
"_OBJC_CLASS_$_GULAppDelegateSwizzler", referenced from:
objc-class-ref in GoogleAppMeasurement(APMAnalytics_f5f2b01aed09e7d23917a3e8a400242e.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

* ARCHIVE FAILED *

The following build commands failed:
Ld /Users/apatwari/Library/Developer/Xcode/DerivedData/bmarket-giuanehfaxrymsdqdnepmubahtpm/Build/Intermediates.noindex/ArchiveIntermediates/bmarket/IntermediateBuildFilesPath/bmarket.build/Debug-iphoneos/bmarket.build/Objects-normal/arm64/bmarket normal arm64

Plugin Version
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: ios 12

Additional context
Plugin was working fine before updating.

Please help.

Most helpful comment

what other plugin were you using that conflicted?

oh! forgot to mention it- duh!

https://github.com/phonegap/phonegap-plugin-push

All 23 comments

I have been having a very similar issue, what version of the plugin was working for you previously? Does it still work if the version is reverted?

Top of my error log:

Undefined symbols for architecture x86_64:
  "_GULLoggerInitializeASL", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_GULLoggerEnableSTDERR", referenced from:
      ___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
  "_OBJC_CLASS_$_GULSwizzler", referenced from:
      objc-class-ref in GoogleAppMeasurement(UIViewController+APMScreenClassName_9656c83908820df5d5741a22364bcbc3.o)
      objc-class-ref in FirebasePerformance(FPRSelectorInstrumentor_533cb9fc17c76e86c2a8deed3bf3bb8e.o)
      objc-class-ref in FirebasePerformance(FPRProxyObjectHelper_3a51514a260cac11ea82400beaac4a87.o)

Cordova 8.0.0
Cordova iOS 4.5.5
XCode 10.1

Same issue here:

Undefined symbols for architecture armv7:
  "_FIRAuthStateDidChangeInternalNotificationUIDKey", referenced from:
      -[FIRAuth possiblyPostAuthStateChangeNotification] in FirebaseAuth(FIRAuth.o)
  "_OBJC_CLASS_$_FIRComponent", referenced from:
      objc-class-ref in FirebaseAuth(FIRAuth.o)
  "_OBJC_CLASS_$_FIRComponentType", referenced from:
      objc-class-ref in FirebaseAuth(FIRAuth.o)
  "_OBJC_CLASS_$_FIRComponentContainer", referenced from:
      objc-class-ref in FirebaseAuth(FIRAuth.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

cordova 8.1.2 ([email protected])
cordova ios 4.5.0
xcode Version 10.1 (10B61)

I have been having the same issue, what version of the plugin was working for you previously? Does it still work if the version is reverted?

I've tried 2.0.0 and I have the same issue

EDIT:

I went back to v1.0.5 and it doesn't work either

Ld /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/IntermediateBuildFilesPath/OLBG.build/Release-iphoneos/OLBG.build/Objects-normal/armv7/OLBG normal armv7 (in target: OLBG)
    cd /Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/Protobuf -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/nanopb -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/GoogleToolboxForMac -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/Protobuf -L/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/nanopb -L/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/OLBG/Plugins/cordova-plugin-appsflyer-sdk -L/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/OLBG/Plugins/cordova-plugin-google-app-conversion-tracker -F/Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseMessaging/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/alvarolaptop/Dropbox/OLBG/products/web-app/olbg-web-app/olbg-hybrid-app/platforms/ios/Pods/FirebaseMessaging/Frameworks -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -FOLBG/Plugins/cordova-plugin-firebase -filelist /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/IntermediateBuildFilesPath/OLBG.build/Release-iphoneos/OLBG.build/Objects-normal/armv7/OLBG.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/IntermediateBuildFilesPath/OLBG.build/Release-iphoneos/OLBG.build/Objects-normal/armv7/OLBG_lto.o -Xlinker -final_output -Xlinker /Applications/OLBG.app/OLBG -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/BuildProductsPath/Release-iphoneos/libCordova.a -framework SystemConfiguration -lz -framework StoreKit -weak_framework AdSupport -lAppsFlyerLib -weak_framework iAd -weak_framework Security -weak_framework AudioToolbox -framework CoreLocation -lGoogleConversionTracking -framework CoreSpotlight -framework CoreTelephony -weak_framework Social -weak_framework MessageUI -lPods-OLBG -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseNanoPB -framework GoogleToolboxForMac -framework nanopb -framework Protobuf -framework FirebaseMessaging -framework Fabric -framework Crashlytics -framework FirebaseRemoteConfig -framework FirebaseABTesting -framework FirebaseAuth -framework GTMSessionFetcher -framework FirebasePerformance -framework FirebaseISASwizzler -framework FirebaseMethodSwizzler -Xlinker -dependency_info -Xlinker /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/IntermediateBuildFilesPath/OLBG.build/Release-iphoneos/OLBG.build/Objects-normal/armv7/OLBG_dependency_info.dat -o /Users/alvarolaptop/Library/Developer/Xcode/DerivedData/OLBG-gumtqyxkhsixxqecnpedtvgelejp/Build/Intermediates.noindex/ArchiveIntermediates/OLBG/IntermediateBuildFilesPath/OLBG.build/Release-iphoneos/OLBG.build/Objects-normal/armv7/OLBG

Undefined symbols for architecture armv7:
  "_kFIRLoggerSwizzler", referenced from:
      ___63+[FIRSwizzler swizzleClass:selector:isClassSelector:withBlock:]_block_invoke in FirebaseMethodSwizzler(FIRSwizzler_82e11d7d79f6bfec451c7947188678ce.o)
  "_FIRAuthStateDidChangeInternalNotificationUIDKey", referenced from:
      -[FIRAuth possiblyPostAuthStateChangeNotification] in FirebaseAuth(FIRAuth_2366ac320b953f0bc7fcfa8add28b99c.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

any idea of what might be going on?

alright- in my case this plugin was conflicting with another plugin:

removed that one and this one worked just fine. It looks like I don't need that one anymore anyways since this one handles push notifications as well

what other plugin were you using that conflicted?

what other plugin were you using that conflicted?

oh! forgot to mention it- duh!

https://github.com/phonegap/phonegap-plugin-push

How did you manage to find out which plugin conflicted with this one ? I'm facing the same issue but i don't use phonegap-plugin-push

@dwolner I am on 2.0.5. I have tried reverting back to many previous versions but none of them work now.

@misterjojo I am also not using phonegap-plugin-push and i am still facing the issue.

Same here … not using phonegap-plugin-push

How did you manage to find out which plugin conflicted with this one ? I'm facing the same issue but i don't use phonegap-plugin-push

Since both plugins do the same (they both require firebase) I just though it'd make sense to remove the other plugin.

Found out that cordova-plugin-googleplus causes the conflict. After removing it build on iOS works.

Interesting, I was able to fix this by reverting the plugin version back to v1.1.4 which I had used on a previous project. I am also using cordova-plugin-googleplus and cordova-plugin-code-push but did not try experimenting with removing them.

I just went back to version 1.05 … this is working again (at least the build, don't get any notification). But rather not the version we want to use :(

Yeah agreed, now running into some API issues requiring a setTimeout that I am not happy about and are most likely fixed in 2.0:

window.FirebasePlugin.grantPermission(() => {
                        setTimeout(() => {
                            window.FirebasePlugin.subscribe('general')
                        }, 2000)
                    })

Need to pinpoint the build issue in 2.0 but I am not sure where to start, maybe with the major changes.

Same issue here and I have cordova-plugin-googleplus also

Same issue with cordova-plugin-googleplus as well. Has anyone had any luck besides downgrading?

Edit: v1.0.5 works, have not tried other versions

what other plugin were you using that conflicted?

oh! forgot to mention it- duh!

https://github.com/phonegap/phonegap-plugin-push

thanks, life saver !!!

In my case it was the Google Plus plugin, I just needed to update and the problem was solved. I think maybe the problem is related to this: https://developers.google.com/android/guides/releases#may_23_2018, so if you have more than one plugin that uses Google Play services, you should update all your plugins, or maybe if it's your case for convenience you need to make a downgrade

I hate this bug, no solution

ugin, I just needed to update and the problem was solved. I think maybe the problem is related to this: https://developers.google.com/android/guides/releases#may_23_2018, so if you have more than one plugin that uses Google Play services, you should update all your plugins, or maybe if it's your case for convenience

Hi @lAndresul, to which versions did you upgrade exactly?

I got same problem when use "cordova-plugin-firebase" and "cordova-plugin-googleplus".
what is solution?

Just remove phonegap-plugin-push and run again. Reason is phonegap-plugin-push conflict with cordova-plugin-firebase plugin.

To have both notifications and firebase tracking, can use cordova-plugin-firebase plugin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulisesvera picture ulisesvera  Â·  5Comments

eilian92 picture eilian92  Â·  4Comments

danielpalen picture danielpalen  Â·  5Comments

chrissterling picture chrissterling  Â·  3Comments

DanielAccorsi picture DanielAccorsi  Â·  3Comments