• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 8 : linker command failed with exit code 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 8 : linker command failed with exit code 1


  • Subject: Re: Xcode 8 : linker command failed with exit code 1
  • From: Doug Hill <email@hidden>
  • Date: Wed, 12 Oct 2016 10:50:11 -0700

Hmmm…I notice that libCrypto isn't included in the "Linked Frameworks and Libraries" list. I also see that the list of libraries included with the Xcode 8 SDK doesn't have it either:
Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

Using libraries from your local drive /usr/lib will give you the Macintosh libraries only, not necessarily what will be linked at runtime on the iOS device. e.g. ARM versions of these libraries.

A Google search doesn't give a lot of help either as to where libCrypto is in the iOS SDK (as I'm sure you've surmised.)

Other suggestions I've seen is to use either the Cocoapods OpenSSL framework, or use the sources installed with Homebrew to build this library yourself.

However, if anyone has any knowledge about whether OpenSSL is included with the iOS SDK, let us know.

Doug Hill


On Oct 12, 2016, at 1:08 AM, Bernard Bernu <email@hidden> wrote:

Hi Everyone,
I just update Sierra and Xcode 8 + Command line tools for Xcode 8
My program was running on previous MacOS 10.11+Xcode 7.3.1.
Now I get a linker exit error code 1;

ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Iibcrypto.dylib in /usr/lib/ is an alias on libcrypto.0.9.8.dylib in /usr/lib/

Adding /usr/lib in search path gives me the same error.

Any idea on how to solve this link problem.

Bernard



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 8 : linker command failed with exit code 1
      • From: Jens Alfke <email@hidden>
    • Re: Xcode 8 : linker command failed with exit code 1
      • From: Alex Zavatone <email@hidden>
References: 
 >Xcode 8 : linker command failed with exit code 1 (From: Bernard Bernu <email@hidden>)

  • Prev by Date: Re: Upgrading Xcode can kill your svn+ssh (solution included)
  • Next by Date: Re: Xcode 8 : linker command failed with exit code 1
  • Previous by thread: Xcode 8 : linker command failed with exit code 1
  • Next by thread: Re: Xcode 8 : linker command failed with exit code 1
  • Index(es):
    • Date
    • Thread