As CaptainRedmuff said,
I've done a mistake.
After few try, I see that with -all_load
linker flag it works even for categories import.
My mistake was in my main header file : bad imports, missing some stuff etc. And finally not reload my project after set -all_load
flag.
Now I've in myFramework.h
:
#import "MyCategory+Helper.h"
#import "MyOtherCategory+Helper.h"
#import "AClass.h"
...
In my project where I use the framework :
1/ Setup "Other Linker Flag" to -all_load
(reload XCode if necessary)
2/ Just #import <myFramework/myFramework.h>
in myProjectApp-Prefix.pch
for example
Then I don't have to import all of the other stuff in my project. Everything seems to be OK despite needed of restart XCode at the very first time after adding my framework.
Thank's CaptainRedmuff, I had already test your solution but in vain. After more tests it's OK !
*EDIT Everything works fine until I go to one of my class who use one of my category. XCode specify me that's I've an error like the category didn't exists. Same issue when I clean my code :((
No visible interface for...declares the selector...
**EDIT If I import <myFrameWork/myFramework>
in myProjectApp-Prefix.pch
but not within the #ifdef __OBJC__ conditional
, it is OK.