当我试图用Xcode构建我的react本机项目时,我从RCT获得了这个错误:
当前目标不支持{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我试过:
发布于 2021-11-18 13:29:15
发布于 2022-08-16 14:52:00
我通过添加以下代码片段来解决这个问题:
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 'intimo_app' 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
)
target 'intimo_appTests' 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!()
# add this condition
post_install do |installer|
react_native_post_install(installer) # <- add this line
__apply_Xcode_12_5_M1_post_install_workaround(installer) # <- add this line
end
end注:我正在使用RN 0.66.3。
https://stackoverflow.com/questions/70008316
复制相似问题