Flipper: Getting "target has transitive dependencies that include statically linked binaries" error

Created on 26 Oct 2019  Â·  4Comments  Â·  Source: facebook/flipper

Hi team, im getting below error at the end of "pod install"
I have followed instructions from : https://fbflipper.com/docs/getting-started.html#cocoapods

Kindly help me to solve it.

[!] The 'Pods-App-target' target has transitive dependencies that include statically linked binaries: (/Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/CocoaLibEvent/lib/libevent.a, /Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/CocoaLibEvent/lib/libevent_core.a, /Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/CocoaLibEvent/lib/libevent_extra.a, /Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/CocoaLibEvent/lib/libevent_pthreads.a, /Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a, and /Users/keshavgn/Desktop/Projects/halodoc-ios/Pods/OpenSSL-Universal/ios/lib/libssl.a)

iOS

Most helpful comment

If you are using use_framework!. Make sure you add the following

   $static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
     'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion',
     'glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
     'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native']

   pre_install do |installer|
     Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
     installer.pod_targets.each do |pod|
         if $static_framework.include?(pod.name)
           def pod.build_type;
             Pod::Target::BuildType.static_library
           end
         end
       end
  end

All 4 comments

Which cocoapods version are you using ?

If you are using use_framework!. Make sure you add the following

   $static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
     'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion',
     'glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
     'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native']

   pre_install do |installer|
     Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
     installer.pod_targets.each do |pod|
         if $static_framework.include?(pod.name)
           def pod.build_type;
             Pod::Target::BuildType.static_library
           end
         end
       end
  end

Hi thank you for your response
It works.

Thank you

On Tue, 5 Nov 2019 at 9:13 PM, Pritesh Nandgaonkar notifications@github.com
wrote:

If you are using use_framework!. Make sure you add the following

$static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion',
'glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native']

pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
if $static_framework.include?(pod.name)
def pod.build_type;
Pod::Target::BuildType.static_library
end
end
end
end

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/flipper/issues/606?email_source=notifications&email_token=ANTDE6FRVUHQJXEQ7Q7DPUTQSGICRA5CNFSM4JFMCYYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDDEBJA#issuecomment-549863588,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANTDE6GRPLZDA3RNRSPT53LQSGICRANCNFSM4JFMCYYA
.

If you are using use_framework!. Make sure you add the following

   $static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
     'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion',
     'glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
     'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native']

   pre_install do |installer|
     Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
     installer.pod_targets.each do |pod|
         if $static_framework.include?(pod.name)
           def pod.build_type;
             Pod::Target::BuildType.static_library
           end
         end
       end
  end

Had to use Pod::BuildType.static_library instead of Pod::Target::BuildType.static_library

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xstable picture xstable  Â·  4Comments

richardtop picture richardtop  Â·  3Comments

abaker picture abaker  Â·  3Comments

bojankoma picture bojankoma  Â·  4Comments

mune0903 picture mune0903  Â·  4Comments