Rome icon indicating copy to clipboard operation
Rome copied to clipboard

Need support to static framework

Open wudijimao opened this issue 7 years ago • 2 comments

I use the Crashlytics.framework witch is a static framework. And I got error below:

The 'Pods-XXXXX' target has transitive dependencies that include static binaries: (/Users/xxxx/Documents/Projects/xxxx/Pods/Crashlytics/iOS/Crashlytics.framework)

Really need static framework support!! Thank you!!

wudijimao avatar Nov 14 '18 12:11 wudijimao

See here for usage instructions for the static framework Firebase pods with Rome. Something similar should work with the Crashlytics pod.

Based on the error message, I suspect that you're running into the more general restriction of trying to have a dynamic framework CocoaPod depend on a static framework one.

paulb777 avatar Nov 14 '18 14:11 paulb777

Add the following to your Podfile:

pre_install do |installer|
    # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

ElfSundae avatar Sep 12 '19 15:09 ElfSundae