ios - 如何解决目标 'BVLinearGrandient' 和 'FBReactNativeSpec' 之间依赖关系的循环问题?

标签 ios swift xcode react-native

提前在 react-native 项目中出错。

Cycle in dependencies between targets 'BVLinearGradient' and 'FBReactNativeSpec'; building could produce unreliable results.
Cycle path: BVLinearGradient → React → React-RCTAnimation → FBReactNativeSpec → BVLinearGradient
Cycle details:
→ Target 'BVLinearGradient' has link command with output '/Users/imac/Library/Developer/Xcode/DerivedData/NOFOS-gdkwrmnotgdstiglulxxrepqzeci/Build/Products/Debug-iphonesimulator/BVLinearGradient/BVLinearGradient.framework/BVLinearGradient'
○ Target 'BVLinearGradient' has compile command with input '/Volumes/WorkSpace/NOFOS/nofosApp/ios/Pods/Target Support Files/BVLinearGradient/BVLinearGradient-dummy.m'
○ Target 'BVLinearGradient' has write command with output /Users/imac/Library/Developer/Xcode/DerivedData/NOFOS-gdkwrmnotgdstiglulxxrepqzeci/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BVLinearGradient.build/module.modulemap
→ Target 'React' has target dependency on Target 'React-RCTAnimation'
→ Target 'React-RCTAnimation' has write command with output /Users/imac/Library/Developer/Xcode/DerivedData/NOFOS-gdkwrmnotgdstiglulxxrepqzeci/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/module.modulemap
○ Target 'React-RCTAnimation' has target dependency on Target 'FBReactNativeSpec'
○ That command depends on command in Target 'FBReactNativeSpec': script phase “[CP-User] Generate Specs”
→ Target 'FBReactNativeSpec' has copy command from '/Volumes/WorkSpace/NOFOS/nofosApp/node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h' to '/Users/imac/Library/Developer/Xcode/DerivedData/NOFOS-gdkwrmnotgdstiglulxxrepqzeci/Build/Products/Debug-iphonesimulator/FBReactNativeSpec/FBReactNativeSpec.framework/Headers/FBReactNativeSpec.h'
○ That command depends on command in Target 'FBReactNativeSpec': script phase “[CP-User] Generate Specs”
我已经尝试了许多模式,如下所述。
  • 清理构建文件夹>>重建。
  • 删除 pod 和 podfile.lock >> pod install。
  • 删除派生数据>>清理构建文件夹>>重建。
  • 关闭 xCode >> rm -rf ~/library/developer/xcode/deriveddata >> rm -rf ~/.rncache >> rm -rf node_modules && npm install && cd ios && rm -rf Pods && pod install && cd ..

  • 在进行上述试验之前,我也重新启动了系统。我在项目中使用了swift。
    请为此提供适当的解决方案。

    最佳答案

    我通过执行 ⌘+Shift+K 和重建解决了不同包的类似问题。

    关于ios - 如何解决目标 'BVLinearGrandient' 和 'FBReactNativeSpec' 之间依赖关系的循环问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67888120/

    相关文章:

    ios - 在 Swift 中识别触摸

    ios - XCODE - 链接器命令失败,退出代码为 1 - 自 xcode 更新以来

    xcode - 如何使用 liblockdown.dylib 获取 UDID?

    xml - xcode, iOS, XML文档解析

    ios - PDFKit后台搜索

    ios - iPhone 5 模拟器在 Facebook 登录时转至旧的登录 View Controller

    ios - Objective C Singleton 方法在 Swift 接口(interface)中不可用

    ios - AVAssetExportSession 在运行时不起作用

    ios - Swift - 解析某些数据

    ios - 解析不将 iOS 8 设备上的新安装添加到数据浏览器