2

I have created a Cocoapod with pod lib create <MYPOD>. I basically want this Pod to be a class that utilizes Google Maps and provides some extra functionality. I have no idea how to do this. The folder structure of the created Pod project is confusing. The pod file sits in an examples folder. When I try to install a GoogleMaps pod by adding target '<MYPOD>' pod 'GoogleMaps' end I get an error: Unable to find a target named, did find '<MYPOD>_Tests'.

1 Answer 1

3

In your Podspec file add

s.dependency = 'GoogleMaps'

While doing pod lib lint use pod lib lint --use-libraries instead

3
  • Do I have to run something after adding this to get the dependency to load for development?
    – Chris
    Jul 9, 2018 at 19:56
  • Got it... pod update in the sample project directory
    – Chris
    Jul 9, 2018 at 20:16
  • 1
    --use-libraries did the trick for me. It also helped with pod spec lint and pod trunk push
    – Michael90
    Feb 12, 2019 at 15:30

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

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

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