You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/05/23 01:23:20 UTC

[jira] [Commented] (CB-3458) requiring all_load linker flag is bad practice and breaks other SDKs with Objective-C categories

    [ https://issues.apache.org/jira/browse/CB-3458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664675#comment-13664675 ] 

Shazron Abdullah commented on CB-3458:
--------------------------------------

It was acceptable at the time. Granted, the time was 2009 (when we first used the concept of CordovaLib), and force_load was not available until Snow Leopard was released (Xcode 3.2), and we never updated it since - until this issue brings it to light again, and we will update it to the better usage.

Ideally the -ObjC alone should work, but those two additional flags were created for the -ObjC linker bug... (not sure if it has been fixed since)
                
> requiring all_load linker flag is bad practice and breaks other SDKs with Objective-C categories
> ------------------------------------------------------------------------------------------------
>
>                 Key: CB-3458
>                 URL: https://issues.apache.org/jira/browse/CB-3458
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.7.0
>            Reporter: Song Zheng
>            Assignee: Shazron Abdullah
>              Labels: flags, ios
>             Fix For: 2.8.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> all_load is bad practice and breaks other SDKs with Objective-C categories. Here is a description of the problem and why all-load is bad:
> http://stackoverflow.com/questions/2906147/what-does-the-all-load-linker-flag-do
> Simple solution: use force_load instead, simple fix!
> With a requirement on all_load linker flag, integrating Cordova with other SDKs will result in duplicate symbol errors.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira