Link against the umbrella framework
Asked Answered
J

3

8

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

Journey answered 10/5, 2013 at 20:27 Comment(1)
Do you have their latest version? You can always just remove armv7s from your project - the newer devices can use armv7.Osithe
J
7

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

Journey answered 11/5, 2013 at 5:53 Comment(1)
Hi i changed like this but still error coming is there any other ways to clear thatTuyettv
S
12

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.

Stun answered 22/6, 2015 at 14:22 Comment(0)
J
7

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

Journey answered 11/5, 2013 at 5:53 Comment(1)
Hi i changed like this but still error coming is there any other ways to clear thatTuyettv
F
0

Xcode build phases

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.

Flathead answered 20/11, 2015 at 16:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.