mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b0c8a4eee8
Summary:
Folly now depends on libc++abi. This solves linker error for RCT-Folly.podspec like this:
```
Undefined symbols for architecture arm64:
"___cxa_increment_exception_refcount", referenced from:
folly::exception_ptr_get_type(std::exception_ptr const&) in libRCT-Folly.a(Exception.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
See https://github.com/react-native-community/releases/issues/251
Note: RNTester was not affected by this bug for some reason, so the only way to verify is via the new app generated via `npx react-native init`.
Changelog: [Fixed][iOS] Unbreak Folly linker error
Reviewed By: lunaleaps
Differential Revision: D30950944
fbshipit-source-id: 3eb146e23faa308a02363761d08849d6801e21ca
41 lines
1.3 KiB
Ruby
41 lines
1.3 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.
|
|
|
|
require "json"
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "../package.json")))
|
|
|
|
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
folly_version = '2021.06.28.00-v2'
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = "ScreenshotManager"
|
|
s.version = package["version"]
|
|
s.summary = package["description"]
|
|
s.description = "ScreenshotManager"
|
|
s.homepage = "https://github.com/facebook/react-native.git"
|
|
s.license = "MIT"
|
|
s.platforms = { :ios => "11.0", :tvos => "11.0" }
|
|
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
|
|
s.author = "Facebook, Inc. and its affiliates"
|
|
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "#{s.version}" }
|
|
|
|
s.source_files = "**/*.{h,m,mm,swift}"
|
|
s.requires_arc = true
|
|
|
|
s.dependency "React"
|
|
s.dependency "RCT-Folly", folly_version
|
|
|
|
# s.dependency "..."
|
|
|
|
# Enable codegen for this library
|
|
use_react_native_codegen!(s, {
|
|
:react_native_path => "../../..",
|
|
:js_srcs_dir => "./",
|
|
:library_type => "modules",
|
|
:output_dir => "./"
|
|
})
|
|
end
|