标签: fbflipper

Pods/RCT-Folly/folly/portability/Time.h 和不同类型的 Typedef 重新定义中的错误('uint8_t'(又名'unsigned char')与'enum Clockid_t')

我正在审查 React Native 项目的源代码,但在构建它时遇到问题。

运行以下命令后

  1. npm install在项目的根部
  2. pod install在ios文件夹中

我在终端中收到以下消息:

sh: -c: line 0: syntax error near unexpected token `('

sh: -c: line 0: `sed -i -e  $'s/__IPHONE_10_0/__IPHONE_12_0/' /Users/myUser/dev/ReactExplorerApp(Android)/ios/Pods/RCT-Folly/folly/portability/Time.h'
Run Code Online (Sandbox Code Playgroud)

当我使用 XCode 构建应用程序时,我在 Time.h (...Pods/RCT-Folly/folly/portability/Time.h) 处收到以下错误消息:

Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')

该应用程序使用“react-native”:“0.66.1”。我正在使用 cocoapods 版本 1.11.2、node 版本 14.17.2 和 XCode 版本 13.1

Pod 文件内容:

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'ExplorerApp' do
  config = use_native_modules!
  pod 'GoogleSignIn'
  pod 'RNI18n', :path => '../node_modules/react-native-i18n'
  pod …
Run Code Online (Sandbox Code Playgroud)

ios react-native folly fbflipper

13
推荐指数
1
解决办法
1万
查看次数

找不到“FlipperKit/FlipperClient.h”文件

我正在尝试将 RN 版本从 0.61.5 迁移到 0.62.0,以使用 Flipper 工具进行调试和分析。

作为此迁移的一部分,我遵循了 RN 文档中的升级帮助程序工具。

集成后,当我尝试构建 IOS 应用程序时,它抛出以下错误。

在此输入图像描述

请找到我的 podfile

platform :ios, '12.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

def add_flipper_pods!
  version = '~> 0.33.1'
  pod 'FlipperKit', version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitLayoutPlugin', version, :configuration => 'Debug'
  pod 'FlipperKit/SKIOSNetworkPlugin', version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitUserDefaultsPlugin', version, :configuration => 'Debug'
  pod 'FlipperKit/FlipperKitReactPlugin', version, :configuration => 'Debug'
end
# Post Install processing for Flipper
def flipper_post_install(installer)
  installer.pods_project.targets.each do |target|
    if target.name == 'YogaKit'
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.1'
      end …
Run Code Online (Sandbox Code Playgroud)

ios flipper react-native fbflipper

13
推荐指数
3
解决办法
3万
查看次数

Flipper:Flipper Hermes 调试器不显示

脚蹼Hermes debugger不显示

\n\n

请问如何让他正常显示\xef\xbc\x9f

\n\n

react-native\xef\xbc\x9a0.62.2(从0.61更新到0.62.2)

\n\n

https://fbflipper.com/

\n\n

https://reactnative.dev/docs/hermes

\n\n

错误信息:

\n\n
Metro is connected but no Hermes apps were found.\n\nOpen a React Native screen with Hermes enabled to connect. Note: you may need to reload the app in order to reconnect the device to Metro.\n
Run Code Online (Sandbox Code Playgroud)\n\n

在此输入图像描述

\n\n

在此输入图像描述

\n

flipper react-native react-devtools react-native-hermes fbflipper

11
推荐指数
1
解决办法
1万
查看次数

当我启用调试时,如何防止 React Native 开发工具在浏览器中启动?

我正在尝试使用Flipper调试我的 React Native 应用程序,每次我打开开发人员菜单并选择“调试”时,它都会启动一个带有调试 UI 的浏览器选项卡。当我运行React Native Debugger时不会发生这种情况,但由于某种原因,Flipper 会发生这种情况。

flipper react-native fbflipper

8
推荐指数
0
解决办法
558
查看次数

Flipper:Hermes 调试器无法连接错误:“调试连接已关闭”

我已经在我的 Windows 机器上下载并设置了翻转桌面,我能够正确运行它的所有功能,包括 react devtools,但不知何故,hermes 调试器不起作用并显示错误消息“调试连接已关闭”。我正在使用 react 16.13.1 和 react-native 0.63.2,我正在 Samasung Galaxy Note 10 设备上运行应用程序。尝试了互联网上人们建议的多种方法,但似乎没有任何效果。请参考下图在此处输入图片说明

请帮帮我。

react-native fbflipper

7
推荐指数
1
解决办法
374
查看次数

将翻转器中的内联日志显示为多行

我正在使用 React Native 和新的 Flipper 调试器。我有一个非常简单的问题,目前当我记录一个大对象时,它只显示在一行中,如下所示:

在此输入图像描述

有没有办法以更好的方式显示它,就像在 Chrome 调试器工具中一样: 在此输入图像描述

因为使用类似 Chrome 的显示方式在对象的日志中导航会更容易,而不是水平滚动一行。

提前致谢

react-native fbflipper

2
推荐指数
1
解决办法
2179
查看次数