Search code examples
xcodeios6

Apple Mach - O - Linker errors


when i try to add other linker flags i.e. -lsqlite3.0 -ObjC i'm encountering the following error:

"_SecRandomCopyBytes", referenced from: "_kSecRandomDefault", referenced from: clang: error: linker command failed with exit code 1 (use -v to see invocation)

I was trying to add these flags in order to use Facebook SDK.


Solution

  • Select the project in the Project Navigator

    Select the Target and then Build Phases

    Add Security.framework in the Link Binary With Libraries list:

    enter image description here