mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
16eccf304e
commit
2510632997
+15
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user