Skip to content

Undefined symbols for architecture armv7: "GULAppEnvironmentUtil" #5282

Closed
@SotoiGhost

Description

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.3.1
  • Firebase SDK version: 6.21.0
  • Firebase Component: InAppMessaging
  • Component version: 0.19.1
  • Installation method: CocoaPods (cocoapods-rome plugin)

[REQUIRED] Step 2: Describe the problem

When building the framework I get the following error:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
      objc-class-ref in FIRInAppMessaging+Bootstrap.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Steps to reproduce:

What happened? How can we make the problem occur?
Unzip the file and run make (cocoapods-rome plugin must be installed to build).

InAppMessaging.zip

Activity

SotoiGhost

SotoiGhost commented on Apr 3, 2020

@SotoiGhost
ContributorAuthor

Workaround for now. Add these lines to your Podfile file:

post_install do |installer|
	installer.pods_project.targets.each do |pod|
		if pod.name == "FirebaseInAppMessaging"
			pod.build_configurations.each do |config|
				if config.name == 'Release'
					puts "Linking missing 'GoogleUtilities' framework to #{pod.name}"
					config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)','-framework "GoogleUtilities"']
				end
			end
		end
	end
end
added this to the 6.23.0 - M69 milestone on Apr 3, 2020
paulb777

paulb777 commented on Apr 3, 2020

@paulb777
Member

Thanks for sending the fix and workaround along with the bug!

It's merged to master and is targeted for the M69-6.23.0 release.

locked and limited conversation to collaborators on May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Undefined symbols for architecture armv7: "GULAppEnvironmentUtil" · Issue #5282 · firebase/firebase-ios-sdk