Reputation: 6106
I'm having some issues with running pod spec lint on a small static library that I'm building. The library in question is https://github.com/seanoshea/ios-etsy-sdk and the output from the linter is available at https://gist.github.com/seanoshea/5630836.
The errors include:
- 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
The Podfile for the library is available at https://github.com/seanoshea/ios-etsy-sdk/blob/master/Podfile and lists AFNetworking as a dependency. When I look at the /tmp/CocoaPods/Lint directory on my machine, I notice that AFNetworking has not been downloaded which means that the .h file is not available.
Am I missing something in my podspec to ensure that AFNetworking is downloaded?
Thanks,
Sean
Upvotes: 1
Views: 602
Reputation: 4285
You need to use the Podspec to say that it depends on AFNetworking. Here is an example.
Upvotes: 3