RCT-FOLLY - 当前目标不支持线程本地存储
RCT-FOLLY - Thread-local storage is not supported for the current target
当我尝试在 Xcode 中构建我的 react-native 项目时,我从 RCT-Folly 收到此错误:
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:41:10:当前目标不支持线程本地存储
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:56:10:当前目标不支持线程本地存储
我不太确定发生了什么,所以我不确定我需要提供什么信息,但这是我的 Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'Aware' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Firebase/AnalyticsWithoutAdIdSupport'
# pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'
# pod 'React-callinvoker"', :podspec => '../node_modules/react-native/ReactCommon/callinvoker.podspec'
target 'AwareTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
#use_flipper!()
post_install do |installer|
react_native_post_install(installer)
end
end
我试过:
- 重新安装:Xcode、node_modules、pod 和项目
- 正在删除:构建文件夹、DerivedData、包-lock.json、Podfile.lock
我遇到了同样的问题,以下是我解决问题的方法
https://github.com/tanersener/react-native-ffmpeg/issues/148#issuecomment-633371018
当我尝试在 Xcode 中构建我的 react-native 项目时,我从 RCT-Folly 收到此错误:
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:41:10:当前目标不支持线程本地存储
{path}/App/ios/Pods/RCT-Folly/folly/container/detail/F14Table.cpp:56:10:当前目标不支持线程本地存储
我不太确定发生了什么,所以我不确定我需要提供什么信息,但这是我的 Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'Aware' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Firebase/AnalyticsWithoutAdIdSupport'
# pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'
# pod 'React-callinvoker"', :podspec => '../node_modules/react-native/ReactCommon/callinvoker.podspec'
target 'AwareTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
#use_flipper!()
post_install do |installer|
react_native_post_install(installer)
end
end
我试过:
- 重新安装:Xcode、node_modules、pod 和项目
- 正在删除:构建文件夹、DerivedData、包-lock.json、Podfile.lock
我遇到了同样的问题,以下是我解决问题的方法
https://github.com/tanersener/react-native-ffmpeg/issues/148#issuecomment-633371018