Updated the installation instruction for swift projects with use_framework

Summary: As per the title. This diff tackles the installation issue for swift projects with `use_framework!`. For more information on this bug follow the discussion [here](https://github.com/facebook/flipper/issues/254)

Reviewed By: danielbuechele

Differential Revision: D15198527

fbshipit-source-id: 573d328369d4bf566ed89f707ed2d6902da0443a
This commit is contained in:
Pritesh Nandgaonkar
2019-05-03 09:48:20 -07:00
committed by Facebook Github Bot
parent c866ba9428
commit a8e7f0e028

View File

@@ -157,19 +157,21 @@ target 'MyApp' do
# it's dependencies to be static and all other pods to
# be dynamic.
# $static_framework = ['FlipperKit', 'Flipper', 'Folly',
# $static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
# 'CocoaAsyncSocket', 'ComponentKit', 'DoubleConversion',
# 'glog', 'PeerTalk', 'RSocket', 'Yoga', 'YogaKit',
# 'glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
# 'CocoaLibEvent', 'OpenSSL-Static', '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)
# pod.host_requires_frameworks = false
# pod.instance_variable_set(:@host_requires_frameworks, false)
# end
# end
# end
# This post_install hook adds the -DFB_SONARKIT_ENABLED flag to OTHER_SWIFT_FLAGS, necessary to build swift target
post_install do |installer|
file_name = Dir.glob("*.xcodeproj")[0]