微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

React Native 构建 ios Flipper 崩溃

如何解决React Native 构建 ios Flipper 崩溃

我不知道发生了什么变化,但我几乎尝试过任何事情,但总是收到此消息:

The following build commands Failed:
    CompileC eveloper/Xcode/DerivedData/xxx-bvxasjfnemrqklbhzatwzolraqjj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper-Folly.build/Objects-normal/x86_64/distributedMutex.o /WebstormProjects/xxx/ios/Pods/Flipper-Folly/folly/synchronization/distributedMutex.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

这是我的 Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
permissions_path = '../node_modules/react-native-permissions/ios'

platform :ios,'10.0'

target 'xxx' do
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])



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

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

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

  pod 'Permission-Camera',:path => "#{permissions_path}/Camera"
  pod 'RNCPicker',:path => '../node_modules/@react-native-picker/picker'

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

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

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

  pod 'RNVectorIcons',:path => '../node_modules/react-native-vector-icons'

  target 'xxxTests' 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 these next few lines.
  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
  end
end

target 'xxx-tvOS' do
  # Pods for xxx-tvOS

  target 'xxx-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

我尝试过的一些事情:

  1. rm Pods + Podfile.lock 和 pod install
  2. 设置鳍状肢版本 0.74.0
  3. 我 100% 确定我使用的是 xcworkspace 而不是 xcodeproj

感谢任何可以提供帮助的人

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。