firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.51k stars 1.44k forks source link

Undefined symbols for architecture arm64 for Unity ios integration using cocoapods #1774

Closed moritz-wundke closed 5 years ago

moritz-wundke commented 5 years ago

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

When integrating Firebase into our Unity app using cocoapods we get the following error:

❌  Undefined symbols for architecture arm64
> Symbol: _SWIGRegisterStringCallback_AppUtil
> Referenced from: _SWIGStringHelper__cctor_m1919616954 in Bulk_Firebase.App_0.o

This is our Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

target 'Unity-iPhone' do
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/DynamicLinks'
  pod 'Firebase/Invites'
end

The pod output is as follows:

Using Firebase (5.5.0)
Using FirebaseAnalytics (5.1.0)
Using FirebaseCore (5.1.0)
Using FirebaseDynamicLinks (3.0.2)
Using FirebaseInstanceID (3.2.1)
Using FirebaseInvites (3.0.0)
Using FirebaseMessaging (3.1.0)
Using GTMOAuth2 (1.1.6)
Using GTMSessionFetcher (1.2.0)
Using GoogleAPIClientForREST (1.3.6)
Using GoogleAppMeasurement (5.1.1)
Using GoogleSignIn (4.2.0)
Using GoogleToolboxForMac (2.1.4)
Using GoogleUtilities (5.2.2)
Using Protobuf (3.6.1)
Using nanopb (0.3.8)
morganchen12 commented 5 years ago

@moritz-wundke can you file a support ticket? It looks like part of the Unity SDK is missing from your project.

moritz-wundke commented 5 years ago

Ok thanks will do!

moritz-wundke commented 5 years ago

It turned out that one of the .a was not set for iOS. Thanks for the hint!