krzyzanowskim / OpenSSL

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

Bitcode disables on 1.0.2.19, no compiling React Native 0.62 #82

Closed Benzer1406 closed 4 years ago

Benzer1406 commented 4 years ago

Hi,

I just updated from React Native 0.61 to 0.62. Everything works except for the OpenSSL-Universal pod. I get the following error:

ld: '.../ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(bio_lib.o)' does not contain 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. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I already tried cleaning cache and running pod install. Also, I deleted the Pods folder and ran pod install. Same thing.

In my Pod.file I tried the following declarations running pod install after changing it: -pod 'OpenSSL-Universal' -pod 'OpenSSL-Universal', '~> 1.0.2.17' -pod 'OpenSSL-Universal', '~> 1.0.2.19'

Also, I followed the instructions on from the Readme.md

Everything without success. What should I do to fix the issue?

Lipo11 commented 4 years ago

Yes, I have same issue. I have to disable bitcode for my project to build with success. This is unacceptable because apple needs enabled bitcode to optimise application size. Please fix it!

krzyzanowskim commented 4 years ago

@Lipo11 Let me clear some facts

  1. bitcode is not required, see https://github.com/krzyzanowskim/OpenSSL/issues/78#issuecomment-552857595
  2. I'm not the OpenSSL author, this is a package script, you should report it to OpenSSL authors.

I don't like your demands here. It's unacceptable behavior.