我正在审查 React Native 项目的源代码,但在构建它时遇到问题。
运行以下命令后
npm install在项目的根部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) 我正在尝试将 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) 脚蹼Hermes debugger不显示
请问如何让他正常显示\xef\xbc\x9f
\n\nreact-native\xef\xbc\x9a0.62.2(从0.61更新到0.62.2)
\n\n\n\nhttps://reactnative.dev/docs/hermes
\n\n错误信息:
\n\nMetro 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.\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n\n flipper react-native react-devtools react-native-hermes fbflipper
我正在尝试使用Flipper调试我的 React Native 应用程序,每次我打开开发人员菜单并选择“调试”时,它都会启动一个带有调试 UI 的浏览器选项卡。当我运行React Native Debugger时不会发生这种情况,但由于某种原因,Flipper 会发生这种情况。