prscX / react-native-notification-banner

React Native: Native Notification Banner
Apache License 2.0
91 stars 28 forks source link

[!] The 'Pods-Bembey' target has transitive dependencies that include statically linked binaries: (/ios/Pods/Crashlytics/iOS/Crashlytics.framework and ios/Pods/Fabric/iOS/Fabric.framework) #20

Open Ritesh175862 opened 4 years ago

Ritesh175862 commented 4 years ago

Can Anybody have any solution

MujtabaFR commented 4 years ago

This is because of using use_frameworks! in your Podfile

it's required by BRYXBanner so keep it and add this code at the end of Podfile

dynamic_frameworks = ['BRYXBanner']
# Make all the other frameworks into static frameworks by overriding the static_framework? function to return true
pre_install do |installer|
  installer.pod_targets.each do |pod|
    if !dynamic_frameworks.include?(pod.name)
      puts "Overriding the static_framework? method for #{pod.name}"
      def pod.static_framework?;
        true
      end
      def pod.build_type;
        Pod::Target::BuildType.static_library
      end
    end
  end
end

This will overwrite use_frameworks! and install all pods as static except for BRYXBanner

Ritesh175862 commented 4 years ago

To late response for my question.by the way we are maked our own banner ui and its working fine

On Sun, Mar 29, 2020, 5:48 PM Mujtaba F. Radhi notifications@github.com wrote:

This is because of using use_frameworks! in your Podfile

it's required by BRYXBanner so keep it and add this code at the end of Podfile

dynamic_frameworks = ['BRYXBanner']

Make all the other frameworks into static frameworks by overriding the static_framework? function to return true

pre_install do |installer| installer.pod_targets.each do |pod| if !dynamic_frameworks.include?(pod.name) puts "Overriding the static_framework? method for #{pod.name}" def pod.static_framework?; true end def pod.build_type; Pod::Target::BuildType.static_library end end end end

This will overwrite use_frameworks! and install all pods as static except for BRYXBanner

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-notification-banner/issues/20#issuecomment-605627443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMKOO7L3QMRNS6VQ56VJ52TRJ44CPANCNFSM4KOC65XA .