FredericJacobs / OpenSSL-Pod

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

openssl was built without bitcode. You must rebuild it with bitcode enabled #13

Closed AdrianaPineda closed 9 years ago

AdrianaPineda commented 9 years ago

I'm getting this warning: URGENT: all bitcode will be dropped because [path to openssl class] was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.

Can you please update the version to one that contains bitcode?

krzyzanowskim commented 9 years ago

This is Xcode 7 beta feature

AdrianaPineda commented 9 years ago

Yeah, its for Xcode 7 beta

massar commented 9 years ago

Apple is moving to LibreSSL... likely APIs will become incompatible at one point too....

FredericJacobs commented 9 years ago

@massar I don't think Apple wants dynamic linking on iOS.

Still researching the implications of Bitcode. I read about optimizations of intermediate representation code, that can be potentially an issue for time-safe functions.

honkmaster commented 9 years ago

Any updates on this issue?

honkmaster commented 9 years ago

Maybe this site is helpful: https://forums.developer.apple.com/thread/8810 (Apple developer forum). It is necessary to add '-fembed-bitcode' to the compiler flags.

chrisballinger commented 9 years ago

@honkmaster Thank you for the tip!

AdrianaPineda commented 9 years ago

@honkmaster thanks I'll check it out

honkmaster commented 9 years ago

Here is a snippet of @steipete with a working script at the end: https://gist.github.com/steipete/99f8aa8d6527fa027fd6

AdrianaPineda commented 9 years ago

Hi! any update on this? -fembed-bitcode didnt work for me :S

FredericJacobs commented 9 years ago

I think it's unwise to compile OpenSSL with Bitcode. Not knowing what compiler optimizations will be performed makes me really scared. Not planning to support this on this pod since it would help developers to shoot themselves in the foot.

AdrianaPineda commented 9 years ago

The problem is that for watchOS apps, bitcode is mandatory. I'm stuck here, this means I can't submit my app :S

fanzhengfeng commented 9 years ago

The problem is that for watchOS apps, bitcode is mandatory. I'm stuck here, this means I can't submit my app :S -- Me too!

steipete commented 9 years ago

Simply use the script/gist from my account that was linked here already. The world doesn't end at Cocoapods, just manually build the files for a quick solution until this is resolved.

FredericJacobs commented 9 years ago

Here are some of the reasons why I don't think: https://twitter.com/FredericJacobs/status/647063164371238913

(Granted, some arguments are less applicable than others. But introduction of side-channels is a critical issue for a crypto implementation)

tyridw commented 6 years ago

This is a late reply, so I suppose a lot has changed since 2015. But I ran into the same problem as initially stated, but I resolved the "You must rebuild it with bitcode enabled" problem by

  1. Removing 'OpenSSL' and running pod deintegrate, pod clean etc., see https://stackoverflow.com/questions/13751147/remove-or-uninstall-library-previously-added-cocoapods

  2. Instead installing 'OpenSSL-Universal' https://cocoapods.org/pods/OpenSSL-Universal

Using Xcode version 10.0

(Disclaimer: I'm not involved in this space. I don't mean to step on anyone's toes if there are contentious issues between the projects OpenSSL and OpenSSL-Universal)