Cocoapods no longer builds project after update?

会有一股神秘感。 提交于 2019-12-21 02:43:25

问题


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.

The exact code was working fine before updating 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.

回答1:


- Remove the build settings from the target.

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.

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.

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).




回答2:


Removing this redundant part of my .xcodeproj file fixed this issue:

FRAMEWORK_SEARCH_PATHS = (
                "$(inherited)",
                "$(PROJECT_DIR)",
                "$(PROJECT_DIR)/Frameworks",
            );


来源:https://stackoverflow.com/questions/26070241/cocoapods-no-longer-builds-project-after-update

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!