没有找到的CocoaPods podspec依赖进口文件 [英] Cocoapods podspec dependency import file not found

查看:305
本文介绍了没有找到的CocoaPods podspec依赖进口文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个Cocoapod依赖于其他,但我有在编译时的问题。说,在这种情况下MyApp的使用CocoapodA和CocoapodB,B依靠。

I'm trying to make a Cocoapod that depends on another but I'm having issues at compile time. Say in this case MyApp is using CocoapodA and CocoapodB, B relies on A.

MyApp的Podfile:

MyApp Podfile:

platform :ios, '5.0'
pod 'CocoapodA'
pod 'CocoapodB', :path => '../../CocoapodB'

CocoapodB Podspec:

CocoapodB Podspec:

s.dependency'CocoapodA

但是当我尝试编译我收到'CocoapodA / CocoapodA.h找不到文件其中CocoapodB进口正试图将其列入。

but when I try to compile I get 'CocoapodA/CocoapodA.h' file not found where the import in CocoapodB is trying to include it.

我试过读Podspec文档,但我并没有真正得到我错过了什么。我也试过 s.library ='CocoapodA'

I've tried reading the Podspec documentation but I didn't really get what I'm missing. I also tried s.library = 'CocoapodA'.

推荐答案

我的问题结束了,该OTHER_LDFLAGS正在覆盖。选择其它链接器标记键(构建设置)和pressing退格现在建立之后。

My problem ended up being that the OTHER_LDFLAGS were being overridden. After selecting the Other Linker Flags key (build settings) and pressing backspace it now builds.

古怪,我只能建立在实际设备上;这两个模拟器和归档失败了。他们可能是别的东西造成的。

Weirdly I can only build on actual device; both simulator and archive are failing. They're probably caused by something else.

这篇关于没有找到的CocoaPods podspec依赖进口文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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