krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
920 stars 340 forks source link

add workspace with iOS and macOS projects #27

Closed jcavar closed 5 years ago

jcavar commented 8 years ago

Ok, here is the first step. Added projects for building iOS and macOS frameworks from Xcode. You can just open workspace, select appropriate scheme, build project and new binary should be copied in bin folder.

krzyzanowskim commented 8 years ago

...but adding sub Pod shouldn't be that many changes. Why would you want add Xcode project at all? It's unecessary

jcavar commented 8 years ago

Because integrating framework as is doesn't work. It doesn't contain plist and id inside binary is not properly set (see this issue https://github.com/x2on/OpenSSL-for-iPhone/issues/103)

krzyzanowskim commented 8 years ago

How "OpenSSL-iOS" and "OpenSSL-macOS" is generated?

krzyzanowskim commented 8 years ago

Isn't Dynamic framework too much trouble after all (bitcode, this)? how about static framework that can be generated quite easily

jcavar commented 8 years ago

Yes, but that doesn't solve CocoaPods issue, right?

jcavar commented 8 years ago

OpenSSL-iOS and OpenSSL-macOS are Xcode projects which are manually generated mostly following Method 2 in this article

eladav commented 7 years ago

Hey, So, Why was this and #26 closed? And why was this PR rejected? I know it's an old issue/pr but it looks like a lot of iOS developers would benefit from that, as well as some major security frameworks for Apple platforms. Edit: and from taking a quick look at the solution it looks like a good one.

sashabaranov commented 7 years ago

+1 for this PR, static linking is painful.

If not merged it would be helpful to instruct users how to integrate this project into their project(i.e. http://stackoverflow.com/questions/32125338/how-can-i-use-an-a-static-library-in-swift) and ignore dependencies to it in Podfile

levigroker commented 5 years ago

FYI, not to diminish the excellent work done here, but I have taken the liberty of creating my own fork which combines these ideas in order to create frameworks. https://github.com/levigroker/GRKOpenSSLFramework