HipByte/motion-cocoapods — pull request #70 by bitgangsta (2013-09-08 07:01:45+00:00)
Title: Changing all_load to ObjC to fix linking error

Hi,

I was trying to use the pjsip cocoapod, which is a wrapper around a SIP library for iOS. It would crash out at linker time, because files were being linked that both have the same symbols. I discovered this would be resolved by using the `-ObjC` linker flag rather than the `-all_load` one, after [stumbling on another user](http://support.frozenmountain.com/entries/24154673-Is-there-an-alternative-for-the-all-load-in-other-linker-flags-in-Xcode-settings) with the same issue.

After looking at the docs for these flags, I think the `-ObjC` one is right. `-all_load` is a largely undocumented flag that seems to force every file, regardless if it has Objective C object code in it, to be linked in. This is only useful in the rare instance that you need to link in a categories file without any classes in it.

I think for motion-cocoapods to take the default behavior to use `-all_load` is a bad idea and this should be changed. Thought I'm open to another solution if you have a suggestion?

Thanks!