• 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 14:52:26 -0700


On Oct 12, 2016, at 1:13 PM, Jens Alfke <email@hidden> wrote:


On Oct 12, 2016, at 10:50 AM, Doug Hill <email@hidden> wrote:

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.

Um, Bernard said he’s building for Mac, not iOS.

I don’t know why there’s a link error, but Apple has been telling us for at least ten years to avoid the system libCrypto library. IIRC the reason is that OpenSSL’s API can change incompatibly between releases. Maybe Xcode has started to enforce this by refusing to link against it?

Pretty much anything you can do with libCrypto can be done with CommonCrypto or the Security framework, so if you own the code that’s calling it, it’d be a good idea to switch over.

—Jens


Uh right, I definitely have iOS on the brain.

But I still think you shouldn't be linking against a library in your local OS system, you should probably stick with the Frameworks/Libraries in Mac OS/macOS 10.x SDK. The fact that libCrypto isn't in the macOS SDK probably indicates Apple doesn't support it.

Again, the options are to use Common Crypto as Jens suggests, or build and link against your own copy of libCrypto.

Doug Hill
 _______________________________________________
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: Bernard Bernu <email@hidden>
References: 
 >Xcode 8 : linker command failed with exit code 1 (From: Bernard Bernu <email@hidden>)
 >Re: Xcode 8 : linker command failed with exit code 1 (From: Doug Hill <email@hidden>)
 >Re: Xcode 8 : linker command failed with exit code 1 (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Xcode 8 : linker command failed with exit code 1
  • Next by Date: Re: Xcode 8 : linker command failed with exit code 1
  • Previous by thread: Re: 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