Reputation: 31
I created a CocoaTouch Framework SDK, which uses the Firebase library for checking. However, I have the following problem:
- Added Firebase Analytics to the SDK, build successful, however if in SDK there is a function call in the class FIRAnalytics
, for example:
[FIRAnalytics logEventWithName:@"share_image"
parameters:@{
@"name": name,
@"full_text": text
}];
Then in Project A(example) using our SDK crashed in the function:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
}
FIRAnalytics
class, Project A will not crashUpvotes: 3
Views: 937
Reputation: 424
For people who wants to use firebase sdks in swift framework without cocoapods, I managed to resolve this crash by just adding following #import to framework's public header file "YourCocoaTouchFrameworkNameSwift.h"
#import <YourCocoaTouchFrameworkName/Firebase.h>
and also followed all the integration instructions in README file.
You can checkout my sample cocoa touch framework and project on github
Upvotes: 1