1

With the latest Xcode, my app is running fine in simulator, but I get this error when I run it on device:

enter image description here

I do not have it linked in my binaries. I do have libz.dylib. Here is what I am linking against:

enter image description here

Why would my project be trying to link against something for cryptography if I'm not doing that? How to fix?

Nimantha
  • 6,405
  • 6
  • 28
  • 69
johnbakers
  • 24,158
  • 24
  • 130
  • 258
  • Does your project have any dependancies? Is it a workspace with other projects in it? – Richard Stelling Oct 08 '12 at 10:35
  • 1
    no, it's a standalone project. to answer Kevin Cao's question, it is iOS sdk 6 in Build Settings, though I cannot run it on device with iOS 5 or iOS 6, yet it runs fine in simulators for iOS 5 and 6. Architecture in Build Settings is set to Standard. – johnbakers Oct 08 '12 at 10:37
  • 1
    Check your linking settings within the build-settings; especially `Linking` -> `Other Linker Flags`, sounds as if there was a -lcommonCrypto in there - make sure you check the `target` specific settings. – Till Oct 08 '12 at 15:20

2 Answers2

1

I re-installed Xcode and the problem disappeared.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
johnbakers
  • 24,158
  • 24
  • 130
  • 258
  • [Better Solution](http://stackoverflow.com/questions/16490304/link-against-the-umbrella-framework) ,as it says remove libcommonCrypto.dylib,and replace by adding SystemConfiguration.framework.It worked for me,might be useful to someone.I was getting Linker Error saying _gettingLink against the umbrella framework 'System.framework' instead_. – Rajal Mar 17 '15 at 10:42
0

It looks like you are using encryption into your code. Please add libcommonCrypto.dylib framework into your code.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
iCreative
  • 1,499
  • 1
  • 9
  • 22
  • I am not using encryption. however, regardless, I cannot find libcommonCrypto.dylib when I go to link to other frameworks. but I shouldn't have to anyway -- again, the app is running fine on simulator. – johnbakers Oct 08 '12 at 11:50