iOS版 - 构建失败的CocoaPods找不到头文件 [英] iOS - Build fails with CocoaPods cannot find header files

查看:324
本文介绍了iOS版 - 构建失败的CocoaPods找不到头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用的CocoaPods在iOS项目。一切都顺利工作,直到另一个开发人员开始在同一个项目工作。他(据我所知只有code)做了一些修改,并在回购作出了新的分支。我已经检查了他的分支,并试图构建它,但我得到一个错误:未找到ASLogger / ASLogger.h文件。

I have an iOS project using CocoaPods. Everything was working smoothly until another developer started to work on the same project. He made some changes (only to code as far as I know) and made a new branch in the repo. I have checked out his branch and tried to build it, but I am getting an error: ASLogger/ASLogger.h file not found.

即使我删除整个项目,使一个新的副本,并使用豆荚安装。构建故障仍然存在。你有什么想法哪里出了问题,可以吗?如果你需要更多的相关信息,只问。

Even if I delete the whole project and make a fresh copy and use 'pods install .' the build failure is still there. Do you have any idea where the problem can be? If you need some more infos, just ask.

推荐答案

更新

请确保您的 Podfile 包括 link_with 失踪的配置文件的目标。只的CocoaPods通过href=\"http://guides.cocoapods.org/using/the-podfile.html\">设置默认的第一个目标,否则

Make sure your Podfile includes link_with on targets missing a config file. Cocoapods only sets the first target by default otherwise. e.g.

platform :osx, '10.7'
pod 'JSONKit',       '~> 1.4'

link_with 'Pomo', 'Pomo Dev', 'Pomo Tests'

------结束更新

注意:请你注意,你必须寻找到工程 - >信息 - >配置为下面的步骤

我有类似的症状,发现没有被包括在特定目标我在 pods.xcconfig 文件试图建立。其他一些建议的解决方案的工作对我来说,但是这一次似乎解决根本问题的一部分。

I had similar symptoms and found that the pods.xcconfig file was not being included in the specific target I was trying to build. Some of the other suggested solutions worked for me, but this one seemed to address part of the underlying issue.

简单的解决办法是改变设置的配置文件是没有一组目标。

The simple solution was to change set the configuration file for the targets that didn't have one set.

这篇关于iOS版 - 构建失败的CocoaPods找不到头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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