Fix the use_framework! error

Summary: Enables the use_framework! support for the Flipper for RN

Reviewed By: jknoxville

Differential Revision: D17206811

fbshipit-source-id: ec1408083655044e1c10d4b7d3b0a6844b15511b
This commit is contained in:
Pritesh Nandgaonkar
2019-09-06 10:02:51 -07:00
committed by Facebook Github Bot
parent 16eccf304e
commit 2510632997
+15 -5
View File
@@ -60,8 +60,20 @@ end
target 'RNTester' do
pods()
if ENV['USE_FRAMEWORKS'] != '1'
flipper_pods()
flipper_pods()
if ENV['USE_FRAMEWORKS'] == '1'
$static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly']
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
end
end
@@ -76,9 +88,7 @@ target 'RNTesterIntegrationTests' do
end
post_install do |installer|
if ENV['USE_FRAMEWORKS'] != '1'
flipper_post_install(installer)
end
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
puts target.name
end