Firebase-ios-sdk: Pod version 6.15.0 - Apple Mach-O Linker Error (10 items)

Created on 15 Jan 2020  路  9Comments  路  Source: firebase/firebase-ios-sdk

Describe your environment

  • Xcode version: 11.2.1
  • Firebase SDK version: 6.15.0
  • Firebase Component: Firebase/Analytics
  • Component version: 6.15.0

Describe the problem
I installed pod 'Firebase/Analytics', '6.15.0' and I am facing a lot of problems that you can see below:

Undefined symbols for architecture x86_64:
"_GULResetLogger", referenced from:
_FIRResetLogger in FirebaseCore(FIRLogger.o)
"_GULIsLoggableLevel", referenced from:
_FIRIsLoggableLevel in FirebaseCore(FIRLogger.o)
"_GULSetLoggerLevel", referenced from:
_FIRSetLoggerLevel in FirebaseCore(FIRLogger.o)
"_GULLoggerRegisterVersion", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLoggerInitializeASL", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLogBasic", referenced from:
_FIRLogBasic in FirebaseCore(FIRLogger.o)
"_GULLoggerEnableSTDERR", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_GULLoggerForceDebug", referenced from:
___FIRLoggerInitializeASL_block_invoke in FirebaseCore(FIRLogger.o)
"_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
objc-class-ref in FirebaseCore(FIRApp.o)
objc-class-ref in FirebaseCore(FIRBundleUtil.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I already have tried to change to another old versions, but that problem happens too.

That is my Podfile:
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '10.0'
use_frameworks!

def firebase_pods
pod 'Firebase/Analytics', '6.15.0'
end

target 'MyTarget' do
firebase_pods
end

analytics

Most helpful comment

Yes, it was.

People, thank you very much for you help!

All 9 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Hi @itsector-esanti, can you share your Podfile and Podfile.lock file to check the versions?

Hi @rizafran

I have attached here!

Podfile.txt
Podfile.lock.txt

@itsector-esanti, I wasn't able to reproduce the issue on my end. Could you provide detailed steps to replicate it as well as the iOS version used? You may also share the complete stack trace.

@itsector-esanti I noticed the Podfile you gave in the first comment is different from the attached Podfile - can you please confirm which one is causing you trouble?

Also, a pod update may be required to ensure all recent dependencies are being pulled in.

Hello @ryanwilson

Yes, you noticed well. It's because I just changed my local branch. But I am having the same problem.

Does pod update help at all? We're unable to reproduce the issue on our end. If it doesn't, trying a blank project and seeing if it works for you would help determine if it's a machine specific problem or a project specific problem.

I suspect the CocoaPods warning about OTHER_LDFLAGS is related to the problem.

Perhaps a $inherited needs to be added to the project settings

Yes, it was.

People, thank you very much for you help!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulharter picture paulharter  路  3Comments

pot8os picture pot8os  路  4Comments

skuske picture skuske  路  3Comments

PierBover picture PierBover  路  3Comments

WillLewis picture WillLewis  路  4Comments