CocoaPods Linter:找不到接口声明 [英] CocoaPods Linter: Cannot Find Interface Declaration

查看:100
本文介绍了CocoaPods Linter:找不到接口声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用CocoaPods时遇到问题,它在我的项目中发现了界面文件。问题的根源是:

I'm having an issue with CocoaPods and it finding interface files in my project. The root of the problem is:

- 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

运行CocoaPods linter的完整输出可在 https: //gist.github.com/seanoshea/5631517 。当我查看机器上的/ tmp / CocoaPods / Lint目录时,可以使用SOSEtsyResult。

The full output from running the CocoaPods linter is available at https://gist.github.com/seanoshea/5631517. When I look at the /tmp/CocoaPods/Lint directory on my machine, SOSEtsyResult is available.

https://github.com/seanoshea/ios-etsy-sdk/blob/master/ios-etsy- sdk / SOSEtsyShopResult.h 是有问题的.h文件,它继承自 https://github.com/seanoshea/ios-etsy-sdk/blob/master/ios-etsy-sdk/SOSEtsyResult.h ,所以我不是确定为什么运行linter时编译失败。

https://github.com/seanoshea/ios-etsy-sdk/blob/master/ios-etsy-sdk/SOSEtsyShopResult.h is the .h file in question and it inherits from https://github.com/seanoshea/ios-etsy-sdk/blob/master/ios-etsy-sdk/SOSEtsyResult.h, so I'm not sure why the compilation fails when I run the linter.

对此有任何想法吗?

Sean

推荐答案

这很可能是因为您期望cocoapods可以将PCH文件放入并将其转换为PCH文件。库。它不会执行的操作(理想情况下,我们不想污染用户pchs

This is most likely because you're expecting cocoapods to pull in the PCH file and to turn that into the PCH file for all of the libraries. Which it does not do ( ideally we don't want to pollute user pchs )

没有什么能像不过请求

这篇关于CocoaPods Linter:找不到接口声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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