FredericJacobs / OpenSSL-Pod

Unmaintained - please fork. Email me to take over the CocoaPod
74 stars 112 forks source link

OS X Support #22

Open GerTeunis opened 9 years ago

GerTeunis commented 9 years ago

On OS X 10.11 final

Create a new OS X Project, call it TestApplication Quit Project Create a podfile and add target :TestApplication do pod 'OpenSSL', '~> 1.0' end

Use pod install and wait for result Open the workspace and compile the TestApplication

Use otool -L (binary in the app bundle) It still shows the library being linked agains the way to old /usr/lib/libcrypto.0.9.8 and /usr/lib/libssl.0.9.8

otool -tV on libPods-TestApplication.a shows there is nothing in there, just an empty text segment

It seems badly broken now

FredericJacobs commented 9 years ago

This pod is iOS only for now.

GerTeunis commented 9 years ago

Thanks, i just figured that out a second ago :)

GerTeunis commented 9 years ago

Please change s.osx.platform = :osx to s.platform = :osx

This caused the confusion

GerTeunis commented 9 years ago

I've created a fork for OS X with a single commit needed. Might be useful to add OS X support to your podspec.

https://github.com/GerTeunis/OpenSSL-OSX-Pod/commit/de95956261f2f5d7de6e464dbf9ae08434a341ec

FredericJacobs commented 9 years ago

Pull request welcome :)