I built a Cocoapod which Crashlytics framework. I couldn't understand how to add the external framework (Crashlytics.framework) to the pod, so it will be imported on my project.
Is it possible?
If you can add the framework library to your Pod's source files, here's another way to do it. For Pod, 'MyPod', add the framework to a directory 'MyPodSubDirectory'. Then edit the podspec file as follows.
s.preserve_paths = 'MyPodSubDirectory/Crashlytics.framework'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework Crashlytics' }
s.vendored_frameworks = 'MyPodSubDirectory/Crashlytics.framework'
You want to use the vendored_frameworks
property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With