Link against the umbrella framework

心不动则不痛 提交于 2019-12-01 00:53:10

问题


I got ios app where i want to implement Flurry-analytics.

After importing Flurry and ling libsystem_network.dylib

I got this problem which cannot solve

ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system/libsystem_network.dylib.  Link against the umbrella framework 'System.framework' instead. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In google i find the same problem with libcommonCrypto.dylib here and in some other places:

CommonCrypto isn't building for arch armv7 iOS

but this doesn't help me

Any ides? thnx


回答1:


When using CommonCrypto in a framework, I was getting a similar error durning linking with libcommonCypto.dylib, changed to Security.framework and it is working well.




回答2:


I simply change libsystem_network.dylib for SystemConfiguration.framework and that works for Flurry




回答3:


You can try set Link Binary With Libraries like this, it works for me. There's a demo, it's called Socket.io-with-iOS, you can checkout out it.



来源:https://stackoverflow.com/questions/16490304/link-against-the-umbrella-framework

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