Reputation: 936
How can I build a static lib without ARC for a project which uses ARC?
I found some source for a static lib, I want build it for my project but I use ARC.
Upvotes: 0
Views: 123
Reputation: 46543
In general case : You can opt for few files(static lib) not using ARC and your own files using ARC.
But for lib it is not required.
You can merge ARC and Non-ARC files quite simply, however you have compiled lib then it doesn't care.
Upvotes: 0
Reputation: 18333
The static library can be built without ARC and included in your project with ARC without doing anything special. If you want to add the source directly, you'll need to add the following compilation option to each non-arc file in build phases: -fno-objc-arc
.
Upvotes: 3