gpt4 book ai didi

ios - Cocoapods 更新后不再构建项目?

转载 作者:可可西里 更新时间:2023-11-01 05:12:06 25 4
gpt4 key购买 nike

更新到最新版本的 cocoapods 后,我无法再生成项目。卸载最新版本并返回旧版本也不能解决问题。

确切的代码在更新 cocoapods 之前工作正常

[!] MyApplication [App Store] 目标覆盖了 `Pods/Target Support Files/Pods-MyApplication/Pods-MyApplication.app 中定义的 HEADER_SEARCH_PATHS build设置存储.xcconfig'。这可能会导致 CocoaPods 安装出现问题

- Use the `$(inherited)` flag, or

- Remove the build settings from the target.

最佳答案

- Remove the build settings from the target.

在 Xcode 中打开项目。选择项目(不是目标)。然后确保 HEADER_SEARCH_PATHS 是可接受的。现在,对于每个Target(不是Project),访问相同的设置。如果它是 BOLD,那么它会被覆盖。

要删除覆盖,请选择设置使其突出显示(即,蓝色背景的白色文本),然后按 COMMAND+DELETE。粗体文本应该消失,目标设置将恢复为从项目设置继承。

在下面的示例中,产品名称目标 覆盖,同时突出显示了Wrapper Extension。 (这些都不适用于您的问题 - 它们只是显示在 Xcode 下要查找的内容)。

enter image description here

关于ios - Cocoapods 更新后不再构建项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26070241/

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