CocoaPods Linter: Cannot Find Interface Declaration

ぐ巨炮叔叔 提交于 2019-12-14 03:15:54

问题


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

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

Any ideas on this?

Sean


回答1:


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 )

Nothing says a real answer like a pull request though.



来源:https://stackoverflow.com/questions/16702814/cocoapods-linter-cannot-find-interface-declaration

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