Cocoapods在更新后不再构建项目? [英] Cocoapods no longer builds project after update?

查看:92
本文介绍了Cocoapods在更新后不再构建项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

After updating to the latest version of cocoapods I can no longer generate the project. Uninstalling the latest version and going back to the older version doesn't resolve the issue either.

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

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

[!] The MyApplication [App Store] target overrides the HEADER_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-MyApplication/Pods-MyApplication.app store.xcconfig'. This can lead to problems with the CocoaPods installation

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

- Remove the build settings from the target.


推荐答案


- 从目标中删除构建设置。

在Xcode中打开项目。选择 项目 (不是目标)。然后确保 HEADER_SEARCH_PATHS 是可以接受的。现在,对于每个 目标 (不是项目),请访问相同的设置。如果 BOLD ,则将其覆盖。

Open the project in Xcode. Select the Project (not a Target). Then ensure HEADER_SEARCH_PATHS are acceptable. Now, for each Target (not Project), visit the same setting. If its BOLD, then its overridden.

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

To remove the override, select the setting so its highlighted (i.e., white text with blue background) and then press COMMAND+DELETE. The bold text should go away, and the Target setting will return to inheriting from the Project setting.

在下面的示例中,产品名称被覆盖目标,而包装器扩展 em>突出显示。 (这些都不适用于您的问题 - 他们只是在Xcode下显示要查找的内容)。

In the example below, Product Name is overriden for the Target, while Wrapper Extension is highlighted. (Neither of these apply to your problem - they just show what to look for under Xcode).

这篇关于Cocoapods在更新后不再构建项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆