CocoaPods棉绒失败

时间:2013-05-22 21:02:13

标签: ios afnetworking cocoapods

我在我正在构建的小型静态库上运行pod spec lint时遇到了一些问题。有问题的库是https://github.com/seanoshea/ios-etsy-sdk,而点击的输出可以在https://gist.github.com/seanoshea/5630836获得。

错误包括:

- ERROR | [xcodebuild]  ios-etsy-sdk/ios-etsy-sdk/SOSEtsyApiClient.m:19:9: fatal error: 'AFHTTPClient.h' file not found
- ERROR | [xcodebuild]  ios-etsy-sdk/ios-etsy-sdk/SOSEtsyShopResult.h:22:32: error: cannot find interface declaration for 'SOSEtsyResult', superclass of 'SOSEtsyShopResult'
- NOTE  | [xcodebuild]  ios-etsy-sdk/ios-etsy-sdk/SOSEtsyShopResult.h:22:12: warning: class 'SOSEtsyShopResult' defined without specifying a base class [-Wobjc-root-class]
- NOTE  | [xcodebuild]  ios-etsy-sdk/ios-etsy-sdk/SOSEtsyShopResult.h:22:29: note: add a super class to fix this problem

该库的Podfile可在https://github.com/seanoshea/ios-etsy-sdk/blob/master/Podfile获得,并将AFNetworking列为依赖项。当我查看计算机上的/ tmp / CocoaPods / Lint目录时,我注意到尚未下载AFNetworking,这意味着.h文件不可用。

我在podspec中遗漏了哪些内容以确保下载了AFNetworking?

谢谢,

肖恩

1 个答案:

答案 0 :(得分:3)

您需要使用Podspec来说明它取决于AFNetworking。 Here is an example