Source files not found in Swift

白昼怎懂夜的黑 提交于 2019-12-10 20:34:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!