1

I had created my own framework project in Xcode and I want to use method from other framework (example : libA.framework) inside my framework project.

I got crash and show unrecognized error when I run and use method from libA.framework, I tried to check method inside headerA.h from libA.framework but not founded, but it founded in headerA+Standalone.h.

What is the difference between headerA.h and headerA+Standalone.h? And How to call method inside headerA+Standalone.h?

Ahmad F
  • 30,560
  • 17
  • 97
  • 143
victorz
  • 39
  • 1
  • 12

1 Answers1

0

headerA+Standalone.h is a category extension of headerA.h which extends the functionality of headerA.h.

Just simply add #import <FRAMEWORK_NAME/headerA+Standalone.h>(Where that header resides). Then you will be able to use the functions inside headerA+Standalone.h

Partho Biswas
  • 2,290
  • 1
  • 24
  • 39
  • I tried to create category just for testing in my framework project and it worked. but it crashed when my framework call `headerA+Standalone.h` in `libA.framework`. I already import `headerA+Standalone.h` but still same – victorz Apr 12 '17 at 08:09
  • Did you make `headerA+Standalone.h` in `libA.framework` as public header ? If not, do so. And also add the method on `headerA+Standalone.h`, which you are calling. – Partho Biswas Apr 12 '17 at 08:15
  • `headerA+Standalone.h` is public header in `libA.framework`, my framework can call method inside `headerA.h` but can't call method inside `headerA+Standalone.h`, I don't know why. – victorz Apr 12 '17 at 08:31
  • It's hard to say, what exactly went wrong without checking the code. Share us the code what you are trying. – Partho Biswas Apr 12 '17 at 08:34