krzyzanowskim / OpenSSL

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

Undefined symbols for architecture arm64 (1.0.2.20) #85

Closed Marcopohlo closed 3 years ago

Marcopohlo commented 4 years ago

Hello, I'm getting this error with 1.0.2.20.

Xcode 11.1, deployment target 12.4

Undefined symbols for architecture arm64:
  "___darwin_check_fd_set_overflow", referenced from:
      _RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture arm64

Any suggestions how to fix this?

Thank you

aiqinxuancai commented 4 years ago

Try Xcode 11.5, If it still fails to build, set pod openssl version 1.0.2.18.

krzyzanowskim commented 4 years ago

This is Xcode bug (or feature) that spread all over

Here, curl has similar problem: https://github.com/curl/curl/issues/5210#issuecomment-615235359 and Mono https://github.com/mono/mono/issues/19393

alexcone commented 3 years ago

Seems to build for ARM with Xcode 12.0b6 and OpenSSL v1.1.1g

krzyzanowskim commented 3 years ago

Look at #36 There's marcin/1.1.1-lts branch to checkout ongoing work. I need testers like you!