Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How remove a "use of undeclared identifier: FIRDynamicLink"?

We are following the dynamic instructions for Firebase here, which lists just one import needed "@import Firebase" - yet when we get to their line

FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url];

if (dynamicLink) { ...

...XCode gives an undeclared identifier for FIRDynamicLink. Unlike some of the other modules like "import FirebaseAnalytics" - there doesn't seem to be another library dedicated to Dynamic Links.

The pod content is: pod "Firebase/DynamicLinks"

What is the trick to get this to compile?

like image 851
Praxiteles Avatar asked Dec 18 '22 16:12

Praxiteles


1 Answers

We solved this by adding the following import line. It wasn't mentioned in Google's documentation so we are unsure if it is the correct thing to do - but it does enable the app to compile.

@import FirebaseDynamicLinks;

Was this a simple oversight in their example code or are we misunderstanding something?

like image 53
Praxiteles Avatar answered Dec 24 '22 01:12

Praxiteles