问题
I am trying to create a Cocoapod. I used the steps listed on their website to do so; however, now that I am trying to create the sample app I'm running into issues. It finds and auto completes the Module, however it says "Undefined Type" for anything I have defined in Classes:
Podfile:
Podspec:
Class attempting to use the pod:
Protocol defined in the pod, included in the correct project:
Not sure what is going on but when I Command+Click on the highlighted protocols in image 3 it does link me to the correct files in the pod
回答1:
Try declaring your protocol as public, since your pod exists in a different module, and the default access permission is internal.
来源:https://stackoverflow.com/questions/37170620/source-files-not-found-in-swift