8

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 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: I have made sure to link the application target to the library created by the framework

Here is a screenshot of the Unit class: 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 Answer 1

17

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I can tell about your feeling...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.