After creating a library that contains AFNetworking and Reachability I had some issues importing this library to other projects with the -ObjC
flag that have already AFNetworking and Reachability. I have a linker error:
duplicate symbols for architecture
Is there any solution to prevent AFNetworking from custom library to be loaded in the main project by -ObjC
flag?
Here is this solution but this means that some changes need to be done in the main project, and I want to avoid that. The client should only import my library without making any additional changes.