Undefined symbols for architecture i386: “_SCNetworkReachabilitySetCallback”

被刻印的时光 ゝ 提交于 2019-12-03 09:22:40

found it! i have copied the SystemConfiguration.framework into my project folder (checking the box when i added from xcode). deleting that folder in my project now compiles well

After adding SystemConfiguration.framework from build phases my project compiles well...

have a fun...!

Eager Beaver

I had also the same problem. I added some frameworks directly with dragging and dropping them.

To resolve it, I deleted all of them and added them through the menu Target>Build Phases and then again added all needed frameworks through Link Binary With Libraries.

After this, your code should be working fine again.

it's simple.

scnetworkreachability callback is labeled as undefined symbol which implies some library or framework file is missing

the prefix sc means system configuration

  • click on the project name choose Summary on right side

  • click link binaries and frameworks

  • click plus on it then you can see a drill down with collections of frameworks and libaries see if there is anything called systemConfigurationframework

  • select that and press ok

  • Now build and run the problem is solved

When i was using AFNetworking, after getting these errors imported 3 frameworks

CFNetwork.framework
Security.framework
SystemConfiguration.framework

All errors will gone.. enjoy !!!

As mentioned above, after importing the following 3 frameworks, it works!

    CFNetwork.framework
    Security.framework
    SystemConfiguration.framework

Thanks a lot!

I would like to point out I also got a problem simular to this.

I copied some files over to xcode and accidently had "ProjectTests" selected instead of the project. Just delete the files and re-add them to your project making sure the main project ( not the unit tests) is selected

I had the same problem after an update from repo.

The solution that worked for me was to delete references from project for all classes and add them again. The problem is that there is a big possibility to mess up the repo synchronization.

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