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'.
Add a comment
|
1 Answer
In your Podspec file add
s.dependency = 'GoogleMaps'
While doing pod lib lint
use pod lib lint --use-libraries
instead
-
Do I have to run something after adding this to get the dependency to load for development?– ChrisJul 9, 2018 at 19:56
-
-
1
--use-libraries
did the trick for me. It also helped withpod spec lint
andpod trunk push
Feb 12, 2019 at 15:30