首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RNCookieManager & Flipper-Folly -字词或预处理程序发出的“cmath”文件找不到

RNCookieManager & Flipper-Folly -字词或预处理程序发出的“cmath”文件找不到
EN

Stack Overflow用户
提问于 2022-07-11 17:44:52
回答 1查看 127关注 0票数 0

这些天,我正在将react原生应用程序从0.61.5升级到0.68.2。经过一些修改后的Gradle文件和轻微的配置调整,Android应用程序目前正在正常工作,没有任何问题。但是iOS应用程序总是在更改pod文件后向我提供一些问题。

在这次升级中,我使用了react本机升级助手(反应本机升级助手0.61.5至0.68.2)。

我的pod文件如下( react -原生版本0.68.2和react版本17.0.1)

代码语言: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'
install! 'cocoapods', :deterministic_uuids => false

target 'HAnalytics' do

  config = use_native_modules!
  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  

  pod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'

  pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-async-storage/async-storage'  

  pod 'react-native-camera', :path => '../node_modules/react-native-camera'

  pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

  pod 'react-native-document-picker', :path => '../node_modules/react-native-document-picker'

  pod 'RNFileViewer', :path => '../node_modules/react-native-file-viewer'

  pod 'RNFS', :path => '../node_modules/react-native-fs'

  pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'

  pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'

  pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'

  pod 'react-native-view-shot', :path => '../node_modules/react-native-view-shot'

  pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

  pod 'RNImageRotate', :path => '../node_modules/react-native-image-rotate'

  pod 'react-native-orientation-locker', :path => '../node_modules/react-native-orientation-locker'

  pod 'react-native-netinfo', :path => '../node_modules/@react-native-community/netinfo'

  pod 'RNKeychain', :path => '../node_modules/react-native-keychain'

  pod 'RNAWSCognito', :path => '../node_modules/amazon-cognito-identity-js'

  pod 'tipsi-stripe', :path => '../node_modules/tipsi-stripe'

  pod 'react-native-webview', :path => '../node_modules/react-native-webview'

  pod 'react-native-biometrics', :path => '../node_modules/react-native-biometrics'

  target 'HAnalyticsTests' 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)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end

end

头搜索路径-:

错误-:

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-07-13 13:48:40

我找到了两种解决办法,

第一个解决方案是将"react-native-cookieURL替换为"@react-native-cookies/cookiesURL

第二个解决方案是使用以下命令重新生成iOS文件夹。

代码语言:javascript
复制
npm i react-native-eject
npm i @react-native-community/cli // if required use this.
react-native eject
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72942645

复制
相关文章

相似问题

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