Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Undefined symbols for architecture x86_64 #670

Closed
rbrand21 opened this issue Jan 10, 2020 · 5 comments
Closed

Undefined symbols for architecture x86_64 #670

rbrand21 opened this issue Jan 10, 2020 · 5 comments

Comments

@rbrand21
Copy link
Contributor

Quick Description: Failing to run on iOS simulator within an ionic project after installation of this plugin.

Full Error Statement:
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_GTMLogLevelFilter", referenced from:
OBJC_CLASS$_FPRGTMLogLevelFilter in FirebasePerformance(FPRGTMLogLevelFilter_06804c8b84564caf28640630bd03488c.o)
"OBJC_METACLASS$_GTMLogLevelFilter", referenced from:
OBJC_METACLASS$_FPRGTMLogLevelFilter in FirebasePerformance(FPRGTMLogLevelFilter_06804c8b84564caf28640630bd03488c.o)
"OBJC_CLASS$_GTMLogger", referenced from:
objc-class-ref in FirebasePerformance(FPRClient_beeed0299df010d8cdaf4da14797cf22.o)
objc-class-ref in FirebasePerformance(PHTPhenotypeDatabase_05d3da2218820425580351d4f64422a7.o)
objc-class-ref in FirebasePerformance(CCTClearcutMetaLogger_3fcaadbb5dd715893759d80126c62018.o)
objc-class-ref in FirebasePerformance(CCTClearcutLogger_059b73d32ccc1035dfecdd0aab88135e.o)
objc-class-ref in FirebasePerformance(PHTPhenotype_a5546ffa4e668e800857715ffeddb5bd.o)
objc-class-ref in FirebasePerformance(CCTClearcutUploader_9ca277af0055cc0fa89b071eb1bd8434.o)
objc-class-ref in FirebasePerformance(PHTPhenotypeFlags_6afe1911cae06f219a18578ef696567c.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ionic Info:
Ionic:

Ionic CLI : 5.4.13
Ionic Framework : @ionic/angular 4.11.7
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 7 other plugins)

Utility:

cordova-res : 0.8.1
native-run : not installed

System:

Android SDK Tools : 26.1.1 (/Users/robertbrand/Library/Android/sdk)
ios-sim : 8.0.2
NodeJS : v13.2.0 (/Users/robertbrand/.nvm/versions/node/v13.2.0/bin/node)
npm : 6.13.6
OS : macOS Catalina
Xcode : Xcode 11.1 Build version 11A1027

Pod Dependencies
Dependencies

  • GoogleSignIn (4.4.0):
    • "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
    • "GoogleToolboxForMac/NSString+URLArguments (~> 2.1)"
    • GTMSessionFetcher/Core (~> 1.1)
  • GoogleToolboxForMac/DebugUtils (2.2.2):
    • GoogleToolboxForMac/Defines (= 2.2.2)
  • GoogleToolboxForMac/Defines (2.2.2)
  • "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.2)":
    • GoogleToolboxForMac/DebugUtils (= 2.2.2)
    • GoogleToolboxForMac/Defines (= 2.2.2)
    • "GoogleToolboxForMac/NSString+URLArguments (= 2.2.2)"
  • "GoogleToolboxForMac/NSString+URLArguments (2.2.2)"
  • GoogleUtilities (6.3.2):
    • GoogleUtilities/AppDelegateSwizzler (= 6.3.2)
    • GoogleUtilities/Environment (= 6.3.2)
    • GoogleUtilities/ISASwizzler (= 6.3.2)
    • GoogleUtilities/Logger (= 6.3.2)
    • GoogleUtilities/MethodSwizzler (= 6.3.2)
    • GoogleUtilities/Network (= 6.3.2)
    • "GoogleUtilities/NSData+zlib (= 6.3.2)"
    • GoogleUtilities/Reachability (= 6.3.2)
    • GoogleUtilities/SecureCoding (= 6.3.2)
    • GoogleUtilities/SwizzlerTestHelpers (= 6.3.2)
    • GoogleUtilities/UserDefaults (= 6.3.2)
  • GoogleUtilities/AppDelegateSwizzler (6.3.2):
    • GoogleUtilities/Environment
    • GoogleUtilities/Logger
    • GoogleUtilities/Network
  • GoogleUtilities/Environment (6.3.2)
  • GoogleUtilities/ISASwizzler (6.3.2)
  • GoogleUtilities/Logger (6.3.2):
    • GoogleUtilities/Environment
  • GoogleUtilities/MethodSwizzler (6.3.2):
    • GoogleUtilities/Logger
  • GoogleUtilities/Network (6.3.2):
    • GoogleUtilities/Logger
    • "GoogleUtilities/NSData+zlib"
    • GoogleUtilities/Reachability
  • "GoogleUtilities/NSData+zlib (6.3.2)"
  • GoogleUtilities/Reachability (6.3.2):
    • GoogleUtilities/Logger
  • GoogleUtilities/SecureCoding (6.3.2)
  • GoogleUtilities/SwizzlerTestHelpers (6.3.2):
    • GoogleUtilities/MethodSwizzler
  • GoogleUtilities/UserDefaults (6.3.2):
    • GoogleUtilities/Logger
  • GTMSessionFetcher/Core (1.3.1)
@rbrand21
Copy link
Contributor Author

Tried running with updated versions of the pod dependencies last night (GoogleSignIn v5.0.2 and GoogleUtilities v6.4.0). Started getting different compile errors:

...Plugins/cordova-plugin-googleplus/GooglePlus.m:29:37: No visible @interface for 'GIDSignIn' declares the selector 'handleURL:sourceApplication:annotation:'

@rbrand21
Copy link
Contributor Author

Noticed I'm two minor versions behind in Xcode. Updating that...

@rbrand21
Copy link
Contributor Author

Also behind on Mac OS version...updated to 10.15.2...in order to update Xcode

@rbrand21
Copy link
Contributor Author

Okay, so an interesting discovery...Removing the plugin cordova-plugin-firebase and keeping cordova-plugin-googleplus results in a successful build. Seems like some sort of competing co-dependency between the two maybe.

@rbrand21
Copy link
Contributor Author

I think the issue lies with the two plugins (cordova-plugin-firebase and cordova-plugin-googleplus ) managing dependencies differently? As of v8.0.0 of this plugin, CocoaPods is used. However the firebase plugin has not been updated to using CocoaPods and instead specifies dependencies via its plugin.xml.

I downgraded cordova-plugin-googleplus to 7.0.2 which was the latest before the introduction of CocoaPods dep management and things seem to be working now. Going to open an issue on cordova-plugin-firebase to support dep management with CocoaPods.

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

No branches or pull requests

1 participant