mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: When building RN Tester with use_frameworks it crashes on launch because of duplicate folly singletons. Seems that it is included twice because of Flipper. From what I understand flipper is not really compatible with use_frameworks so this removes it from that build variant. We also remove hardcoded SONARKIT defines in the xcodeproject, those will be added by the Flipper podspec anyway so it is not needed. This then exposed a missing double conversion header error in Folly so this fixes the DoubleConversion podspec to add its headers path to the user project. ## Changelog [Internal] [Fixed] - Fix use_framework RNTester crash Pull Request resolved: https://github.com/facebook/react-native/pull/30520 Test Plan: Tested RN tester with use frameworks on and off. Also made sure flipper works still when frameworks is false. Reviewed By: fkgozali Differential Revision: D25307973 Pulled By: hramos fbshipit-source-id: 17b90e871734e32f5982c4fc9c07aeea232f868f
27 lines
1.0 KiB
Ruby
27 lines
1.0 KiB
Ruby
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.name = 'DoubleConversion'
|
|
spec.version = '1.1.6'
|
|
spec.license = { :type => 'MIT' }
|
|
spec.homepage = 'https://github.com/google/double-conversion'
|
|
spec.summary = 'Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles'
|
|
spec.authors = 'Google'
|
|
spec.prepare_command = 'mv src double-conversion'
|
|
spec.source = { :git => 'https://github.com/google/double-conversion.git',
|
|
:tag => "v#{spec.version}" }
|
|
spec.module_name = 'DoubleConversion'
|
|
spec.header_dir = 'double-conversion'
|
|
spec.source_files = 'double-conversion/*.{h,cc}'
|
|
spec.compiler_flags = '-Wno-unreachable-code'
|
|
|
|
spec.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/DoubleConversion\"" }
|
|
|
|
# Pinning to the same version as React.podspec.
|
|
spec.platforms = { :ios => "10.0" }
|
|
|
|
end
|