2

Created a framework with NSObject class , build successfully.But after importing the framework , I am not able to access the class inside the framework.

public class DetectMotion:NSObject,CLLocationManagerDelegate{
}

Steps for creating framework

1.Create a new project "cocoa touch framework"

2.Import class "DetectMotion" in my case

3.Edit scheme set to "build" & build the project.

4.Import the framework from finder in main project.

7
  • Is the class header set as public or project? Commented Apr 24, 2017 at 10:31
  • @AdamRichardson updated the question Commented Apr 24, 2017 at 10:39
  • You might find this blog helpful enekoalonso.com/articles/… Commented Apr 24, 2017 at 10:42
  • @Saurabh Can you tell the whole process how you created i you will create wrong then you won't be able to access Commented Apr 24, 2017 at 10:43
  • Did you embeb the framework? Commented Apr 24, 2017 at 10:44

1 Answer 1

2

if you have any method name for location updates , make it public & then try it will work

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

Comments

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.