Apple Mach-O Linker Errors (20) - Undefined symbols for architecture armv7

后端 未结 6 1627
野的像风
野的像风 2020-12-24 07:58

I received these errors after I added \" -all_load \" in the \"Other Linker Flags\" build setting once I added \"libPusher-combined.a\" and its header files. I followed the

相关标签:
6条回答
  • 2020-12-24 08:34

    For the latest sdk, you should add:

    libicucore.tbd 
    

    since libicucore.dylib is not present anymore.

    hope .tbd extension is not for "to be delete"?

    0 讨论(0)
  • 2020-12-24 08:36

    In my case when I added SystemConfiguration.framework to the project and problem went... :-)

    0 讨论(0)
  • 2020-12-24 08:38

    Check to make sure you included the following frameworks (via https://github.com/square/SocketRocket) :

    Framework Dependencies

    Your .app must be linked against the following frameworks/dylibs

    libicucore.dylib CFNetwork.framework Security.framework Foundation.framework

    0 讨论(0)
  • 2020-12-24 08:47

    I copied the complete SocketRocket folder into my application for using web sockets in my application and linked libicucore.dylib, CFNetwork.framework, Security.framework, Foundation.framework binaries with my project. This removed all my errors and warnings.

    0 讨论(0)
  • 2020-12-24 08:52

    Make sure that you also have -licucore in "Other Linker Flags", in the build settings tab, as in the attached screenshot:

    Other Linker Flags

    0 讨论(0)
  • 2020-12-24 08:53

    Can you check out in your target->Build Phase. whether these files exist there or not ? and if you are running for simulator then first you need to make a build for simulator of that library whatever i guess you are using SRWebSocket library. Just open that project and just make a build for simulator and copy the files from build folder and then add to your project and do the same for the device if you are running your app on device.

    0 讨论(0)
提交回复
热议问题