diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-11-29 07:20:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 07:20:23 -0800 |
commit | 123ce4cdea12140a5e6aa75de5627fc1dfc7e787 (patch) | |
tree | 2f17af9d6de9ddba489d28b87ac19b379aa85847 | |
parent | 343421d93e3b0c9892e1f3d11096d59da8d261fe (diff) |
Instructions for static library interop with Analytics (#503)
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | patch/FirebaseAnalytics.h | 9 |
2 files changed, 16 insertions, 1 deletions
@@ -29,6 +29,8 @@ It is now possible to override the default pod locations with source pod locations described via the Podfile syntax documented [here](https://guides.cocoapods.org/syntax/podfile.html#pod). +**CocoaPods 1.4.0** or later is required. + For example, to access FirebaseMessaging via a checked out version of the firebase-ios-sdk repo do: @@ -45,7 +47,11 @@ To access via a tag (Release tags will be available starting with Firebase 4.7.0 pod 'FirebaseAuth', :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => '4.7.0' ``` -Note that CocoaPods 1.4.0 or later is required. +If your Podfile does not include *use_frameworks!*, you need to workaround +a build issue with the FirebaseAnalytics umbrella header. Delete the first four lines +of Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h +or copy [patch/FirebaseAnalytics.h](patch/FirebaseAnalytics.h) to +Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h ## Usage diff --git a/patch/FirebaseAnalytics.h b/patch/FirebaseAnalytics.h new file mode 100644 index 0000000..72c55c6 --- /dev/null +++ b/patch/FirebaseAnalytics.h @@ -0,0 +1,9 @@ +// Firebase Analytics umbrella header for interoperating with open source builds +// More details at https://github.com/firebase/firebase-ios-sdk#source-pod-integration + +#import "FIRAnalytics+AppDelegate.h" +#import "FIRAnalytics.h" +#import "FIRAnalyticsSwiftNameSupport.h" +#import "FIREventNames.h" +#import "FIRParameterNames.h" +#import "FIRUserPropertyNames.h" |