XCode 6 Framework issue: Module [framework] has no member named [class]

限于喜欢 提交于 2020-01-14 10:15:08

问题


I have built a custom framework that I have pulled into a workspace containing an application I am writing using Xcode 6. I am getting an error when I try to instantiate a class belonging to the framework reading Module 'Framework' has no member named 'Unit':

I have made sure to link the application target to the library created by the framework:

Here is a screenshot of the Unit class:

I have no idea what I'm doing wrong. I don't see anyone else that has experienced this issue. I would be forever indebted to anyone that could help me troubleshoot this issue. Thank you in advance for your help.


回答1:


I feel very dumb right now. I thought that the default access level was public for everything defined in my Framework. I was able to fix this issue by making the class and the initializer public.



来源:https://stackoverflow.com/questions/25829207/xcode-6-framework-issue-module-framework-has-no-member-named-class

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