Closed lazerwalker closed 8 years ago
(Checking off a few "did I RTFM?" questions: as per #32, I both nuked /tmp/openssl
and tried again, and ensured that my default Xcode binary is sensible)
And now it's working. Literally turned the computer off and on again. Computers, am I right?
Carry on.
I've been trying to
pod install
a project that requires this (Signal-iOS), but it's consistently failing to build for me on my machine (OS X 10.11.4, Xcode 7). Relevant failure in the log:Steps to reproduce:
git clone http://github.com/whispersystems/signal-ios
pod install
(orpod install --verbose
, for more fun)There are a couple GitHub Issues on the Signal-iOS repo that indicate this isn't just a "my machine is broken" problem, but it also pretty clearly seems like an OpenSSL issue rather than a Signal-iOS issue.
The way I've solved this in my own personal development environment is switching to the "OpenSSL-Universal" pod (which solves the problem by just including prebuilt binaries), but since it's a full minor point release behind your pod that's presumably not a viable option.
Googling around, this seems to be a relatively common issue (e.g. http://stackoverflow.com/questions/37063202/getting-libcrypto-ar-error-while-compiling-openssl-for-mac), the solution to which is usually to switch from
ar
tolibtool
. While I'm pretty confident I could kluge together some fix by manually modifying the Makefile on my machine, that doesn't really seem like a scalable solution, given that presumably most (or at least many) people trying to install this pod are going to run into that problem.Not sure what the viable solution is – assuming the issue is in fact solved by updating the Makefile, and assuming OpenSSL isn't actually interested in making those changes upstream, maybe modifying the podspec install script to modify the Makefile itself? Just an addition to the README for this pod that outlines what needs to be done?
Happy to help in any way that I can, but I figured first would be to see if this is an issue you've encountered and/or solved before.
Thanks!