1

I'm developing a CocoaPod with a dependency on an external library, defined in my Podfile as:

pod 'somePod', '~> someVersion'

I can then run pod install to install the Pod.

However, when installing my pod into another application, the header files from somePod are not included. I'm assuming this is a podspec issue with exported header files. Below is a snippet of my podspec:

s.source_files  = "MYPOD", "MYPOD/**/*.{h,m}"
s.public_header_files = "MYPOD/**/*.h"

1 Answer 1

1

You can add the dependency in the podspec itself like this:

spec.dependency 'somePod', '~> someVersion'

See here: http://guides.cocoapods.org/syntax/podspec.html#dependency

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.