首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当前目标不支持RCT-FOLLY - Thread-local存储。

当前目标不支持RCT-FOLLY - Thread-local存储。
EN

Stack Overflow用户
提问于 2021-11-17 16:39:55
回答 2查看 9.2K关注 0票数 8

当我试图用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:

代码语言:javascript
复制
    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,package-lock.json,Podfile.lock
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-11-18 13:29:15

票数 5
EN

Stack Overflow用户

发布于 2022-08-16 14:52:00

我通过添加以下代码片段来解决这个问题:

代码语言:javascript
复制
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。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70008316

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档