gpt4 book ai didi

ios - 在目标 'StoreApp' 和 'NotificationContentExtension' 之间循环依赖;构建可能会产生不可靠的结果

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:28:58 25 4
gpt4 key购买 nike

更新 Xcode 10.0 后,构建项目时出现以下错误。

Cycle in dependencies between targets 'StoreApp' and 'NotificationContentExtension'; building could produce unreliable results. Cycle path: StoreApp → NotificationContentExtension → StoreApp Cycle details: → Target 'StoreApp': LinkStoryboards ○ Target 'StoreApp' has compile command with input

○ Target 'StoreApp' has target dependency on Target 'NotificationContentExtension' ○ That command depends on command in Target 'NotificationContentExtension': script phase “[CP] Check Pods Manifest.lock” → Target 'NotificationContentExtension' has target dependency on Target 'StoreApp' ○ That command depends on command in Target 'StoreApp': script phase “[CP] Check Pods Manifest.lock”

我尝试了所有其他问题中建议的许多不同方法,但没有一个有效。请帮我解决这个问题?

最佳答案

我已经通过以下方式解决了这个问题:

首先按照以下方式从您的项目中完全删除 Cocoapod:

  1. 删除独立文件(Podfile Podfile.lock 和您的 Pod目录)
  2. 删除生成的xcworkspace
  3. 打开您的 xcodeproj 文件,删除对 Pods.xcconfig 和 libPods.a(在 Frameworks 组中)的引用
  4. 在您的构建阶段下,删除 Copy Pods Resources、Embed Pods Frameworks 和 Check Pods Manifest.lock 阶段。

然后从您的计算机上完全卸载 Cocoapod:要完全删除,请发出以下命令:

gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-downloader

如果您安装了多个版本,请按如下方式分别卸载它们:

gem uninstall cocoapods -v 0.20.2

运行 gem list --local | grep cocoapods 检查 cocoapods 是否保留在您的机器中。

然后重启你的机器,按照下面的方式重新安装Cocoapods到机器中:

sudo gem install -n /usr/local/bin cocoapods

最后将 cocoapods 与您的项目集成。

关于ios - 在目标 'StoreApp' 和 'NotificationContentExtension' 之间循环依赖;构建可能会产生不可靠的结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52389825/

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