ios - 如何在react-native中重置ios库?

标签 ios xcode react-native cocoapods

我有一个用

初始化的新应用程序
react-native init demo

并使用react-native run-ios成功运行。

我使用 CocoaPods 安装了一些库,现在 react-native run-ios 可以工作,但 xcode 构建不行。

我尝试删除 Pods 库,将所有文件检查回原始状态,然后重复 pod install 但在 xcode 构建中仍然遇到相同的错误:

Showing Recent Messages :-1: Cycle in dependencies between targets 'bridgeTests' and 'Pods-bridgeTests'; building could produce unreliable results. Cycle path: bridgeTests → Pods-bridgeTests → bridgeTests Cycle details: Target build order preserved because “Parallelize Build” is off

→ Target 'bridgeTests' has target dependency on Target 'Pods-bridgeTests' → Target 'Pods-bridgeTests' has target dependency on Target 'bridge' due to target order in a “Target Dependencies” build phase or the scheme ○ That command depends on command in Target 'bridge': script phase “[CP] Copy Pods Resources”

我想以某种方式重建我的整个ios库,以便xcode构建可以像react-native run-ios一样工作。

解决办法是什么?

谢谢, 亚龙

最佳答案

首先删除iosandroid文件夹,然后执行

react-native <= 0.59.10
react-native-cli <= 1.3.0

react-native eject

react-native <= 0.59.10
react-native-cli <= 1.3.0

react-native upgrade --legacy true

more...

关于ios - 如何在react-native中重置ios库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57101504/

相关文章:

ios - 设置 ContentInset 后,UITableView 部分不会滚动到顶部

ios - 应用程序无法访问您的照片或视频 iOS 9

ios - UnitTest - 等待期望被 NSPredicate 忽略

iphone - "Storyboard.storyboard"无法打开

react-native - React Native堆栈导航模式不滑动

ios - ViewController 不符合协议(protocol) 'UISearchResultsUpdating'

javascript - 使用 Javascript 在 UIWebView 中跳转搜索结果

ios - Xcode 64 位模拟器图形故障

reactjs - 无法在 native webview 中打开谷歌地图

react-native - 将 react-native 升级到最新版本 0.61.4 后找不到以下原生模块