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

亡梦爱人 提交于 2019-11-29 23:01:14

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.

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

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

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.

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"?

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!