React Native iOS 构建错误:架构arm64 有 2 个重复符号

问题描述 投票:0回答:1

最近对我的 React Native 应用程序进行 iOS 构建的所有尝试都失败了,并出现以下错误: From Xcode build logs

我已经完全删除了

ios/Pods
ios/build
ios/Podfile.lock
,并通过
rm -rf ~/Library/Developer/Xcode/DerivedData/*
删除了本地开发人员 xcode 派生数据,正如在回答其他几个问题时所建议的那样,紧接着是一个新的
pod install
。然而,在开始 iOS 构建时,我仍然收到错误: console output for ios build failure

这是我的相关依赖项: package.json contents

有什么想法可能导致这种情况吗?

ios react-native arm64
1个回答
0
投票

然后按照以下步骤操作:

a.最重要的是,请记住将 "reactNativePermissionsIOS": ["Camera"] 和 "postinstall": "react-native setup-ios-permissions && pod-install" 添加到你的 package.json 中。

b.运行 npm install。

c.删除node_modules/react-native-qrcode-scanner/node_modules/react-native-permissions,因为它安装了已弃用的2.0.2。 (每次清除 node_modules 时都需要执行此操作)。

© www.soinside.com 2019 - 2024. All rights reserved.