IBM Support

PI51719: LINKAGE ERROR ON THE NATIVE IOS MFP SDK INTO A PROJECT THAT USES AFNETWORKING CLASSES.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When inlcuding the native iOS MFP SDK into a
    project that uses AFNetworking classes there are Linker errors.
    The error message was:
    
    duplicate symbol _OBJC_CLASS_$__AFURLSessionTaskSwizzling in:
    
    /Users/milliger/Library/Developer/Xcode/DerivedData/AFNetworking
    MFPIntegrationTest-czwkmoihkxdedlblsmudxgoacwtc/Build/Intermedia
    tes/AFNetworkingMFPIntegrationTest.build/Debug-iphonesimulator/
    AFNetworkingMFPIn tegrationTest.build/Objects-normal/x86_64/
    AFURLSessionManager.o
    
    /Users/milliger/Documents/SametimeFileTransfers/AFNetworkingMFP
    IntegrationTest/AFNetworkingMFPIntegrationTest/IBMMobileFirst
    PlatformFoun dation.framework/IBMMobileFirstPlatformFoundation
    (WLAFURLSession Manager. o)
    
    duplicate symbol _OBJC_METACLASS_$__AFURLSessionTaskSwizzling
    in:
    
    /Users/milliger/Library/Developer/Xcode/DerivedData/AFNetworking
    MFPIntegrationTest-czwkmoihkxdedlblsmudxgoacwtc/Build/
    Intermediates/AFNettworkingMFPIntegrationTest.build/Debug-
    iphone simulator/AFNetwork ingMFPIn tegrationTest.build/
    Objects-normal/x86_64/AFURLSessionManager.o
    
    /Users/milliger/Documents/SametimeFileTransfers/AFNetworkingMFP
    IntegrationTest/AFNetworkingMFPIntegrationTest/IBMMobileFirst
    PlatformFoun dation.framework/IBMMobileFirstPlatformFoundation
    (WLAFURLSessionManager. o)
    
    ld: 2 duplicate symbols for architecture x86_64
    
    clang: error: linker command failed with exit code 1 (use -v to
    see invocation)
    
    Client Architect updated with below solution:
    =============================================
    Class WLAFURLSessionManager.m has internal interface called:
    "_AFURLSessionTaskSwizzling".
    
    Renaming it to "_WLAFURLSessionTaskSwizzling" should fix
    the problem.
    

Local fix

  • Class WLAFURLSessionManager.m has internal interface called:
    "_AFURLSessionTaskSwizzling".
    
    Renaming it to "_WLAFURLSessionTaskSwizzling" should fix
    the problem.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Using AFnetworking framework                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Compilation error                                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply this fix                                               *
    ****************************************************************
    

Problem conclusion

  • Missing WL prefix
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI51719

  • Reported component name

    MFPF/WORKLIGHT

  • Reported component ID

    5725I4301

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-11-02

  • Closed date

    2015-11-18

  • Last modified date

    2015-11-18

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    MFPF/WORKLIGHT

  • Fixed component ID

    5725I4301

Applicable component levels

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 October 2021