gpt4 book ai didi

ios - 安装 pod 文件后构建 IOS 应用程序时出错

转载 作者:行者123 更新时间:2023-11-29 05:56:16 25 4
gpt4 key购买 nike

我正在安装pod

pod 'Carte'

图书馆还希望我将这一行粘贴到我的 pod 文件的底部:

post_install do |installer|
pods_dir = File.dirname(installer.pods_project.path)
at_exit { `ruby #{pods_dir}/Carte/Sources/Carte/carte.rb configure` }
end

运行pod install后,库已安装,但是,我在终端中收到有关

的警告消息

always embed swift standard libraries

我搜索并找到了一些解决方案。并发现将它们设置为 $(inherited) 对大多数人来说都有效。我这样做了,清理并再次安装 Pod,但没有任何改变。我还看到有人在改变

always search users paths

也到$(inherited),这也是如此。错误仍然存​​在。

关于构建我的项目。我也收到错误

Cycle inside APPNAME; building could produce unreliable results

我发现更改为旧版构建系统可以解决问题,但是,我不想更改为旧版构建系统。我不明白为什么会出现这些消息。我已从 pod 文件中删除了 pod 'Carte' 以及他们希望我粘贴的行,但再次安装后仍然出现错误。我还尝试删除 pod 文件和 pod lock 文件,删除 xcworkspace 文件并重新安装 pod 文件,但错误仍然存​​在。有人有解决办法吗?谢谢。

通过检查该错误我发现了这个:

error: Cycle inside TARGET; building could produce unreliable results. Cycle details: → Target 'TARGET' has compile command with input '/Users/andrewharris/Desktop/TARGET/TARGET/TARGET/Notifications/AcceptedRemovedRequest/AcceptedRemovedCell.xib' ○ Target 'TARGET' has target dependency on Target 'OneSignalNotificationServiceExtension' ○ That command depends on command in Target 'TARGET': script phase “[Carte] Pre Script”

我认为 Carte 没有以某种方式卸载?

最佳答案

我通过更仔细地检查它来解决这个错误。错误内部:

Cycle inside TARGET; building could produce unreliable results

它告诉我它与目标有关 OneSignalNotificationServiceExtension 我查看了目标,发现在构建阶段仍然有 [Carte] Pre Script[Carte] Post Script,所以我删除了两者。我还删除了目标并重新创建它以防万一。我还在 AppName Target 中执行了相同的操作,并删除了 Pre 和 Post 脚本。之后,我清理并运行了它成功的项目。

关于ios - 安装 pod 文件后构建 IOS 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55131645/

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