Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
i have 4 different targets in my project. I have some different view controllers in two of them. I face with a problem when i build with the 4th target. I can build with other 3 of them without any problem. Here is the error code
ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/lib/system/libcommonCrypto.dylib. Link against the umbrella framework 'System.framework' instead. for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Another problem is when i delete libcommonCrypto.dylib the 4th target can be builded as well but i can not test if the effected features are still working properly. Because i tested it with a wireless router and now i dont have it at office. So what would u suggest me in this situation ?
 
I haven't run into this but apparently this is a common problem for several years. Are you using the latest Xcode version?

You can try to add Security.framework. http://blogs.candoerz.com/question/130254/link-against-the-umbrella-framework.aspx

or add SystemConfiguration.framework http://stackoverflow.com/questions/16490304/link-against-the-umbrella-framework

Probably these other frameworks include the correct libcommonCrypto.dylib indirectly.

If that doesn't help there's quite a bit of discussion of this problem online.
 
thank you for your answer man. I added JavascriptCore.framework. It doesnt give error while building at least. I hope it works as intended.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.