I am trying to create a pod of library. I am following this tutorial. Pod lint successfully validate the pod spec. However when i import it as module i get error Use of unknown type
. Here is the project
Update:
pod lib create
MZDownloadManager
.pod lib lint MZDownloadManager
and it gives success.pod install
.ReplaceMe
and created the test class named ReplaceMe
and just define its testing initialiser.Use of undeclared type
podspec file looks like this:
Finally I figured out the issue after spending so many hours. The problem was that my classes in my development pod is not declared as public and docs clearly states that:
It's worth mentioning here, as this catches people quite often, a Swift library needs to have it's classes declared as public for you to see them in your example library.
I hope this will save time of other developers facing similar issue.