gpt4 book ai didi

react-native - react native : how to run flipper with apple silicon

转载 作者:行者123 更新时间:2023-12-05 08:10:36 25 4
gpt4 key购买 nike

我在尝试运行在 apple silicon 中使用 Flipper 的 react-native 应用程序时遇到问题,我收到以下错误:

enter image description here

我尝试了一些方法,比如在 rosetta 模式下运行 Xcode,但没有用,我还尝试了此 issue 中提到的一些可能的解决方案, 但所有选项均无效。

目前,唯一有效的方法是调整 react-native.config.js 文件以防止 Flipper 自动链接,如下所示:

module.exports = {
dependencies: {
'react-native-flipper': {
platforms: {
ios: null,
},
},
},
//... other react native configs
};

这个选项会禁用 Flipper,我需要的是让它工作,而不是禁用它。

最佳答案

Bump the FLIPPER_VERSION variable in android/gradle.properties. as

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.158.0

Then run cd android && ./gradlew clean && cd ..

它将在您的项目中集成flipper。通过使用它,您需要安装 flipper 以在您的系统上调试应用程序,然后在 flipper 应用程序上安装 Sdk。然后您可以使用脚蹼调试您的应用程序。

进一步的解释可以访问Here .

希望对您有所帮助。

关于react-native - react native : how to run flipper with apple silicon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73376377/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com