Giter VIP home page Giter VIP logo

Comments (9)

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

hm.... current build have i386 binary already, should be fine. Can you prepare example project for that ?

$ file libssl.a
libssl.a: Mach-O universal binary with 5 architectures
libssl.a (for architecture armv7): current ar archive random library
libssl.a (for architecture armv7s): current ar archive random library
libssl.a (for architecture i386): current ar archive random library
libssl.a (for architecture x86_64): current ar archive random library
libssl.a (for architecture arm64): current ar archive random library

$ file libcrypto.a
libcrypto.a: Mach-O universal binary with 5 architectures
libcrypto.a (for architecture armv7): current ar archive random library
libcrypto.a (for architecture armv7s): current ar archive random library
libcrypto.a (for architecture i386): current ar archive random library
libcrypto.a (for architecture x86_64): current ar archive random library
libcrypto.a (for architecture arm64): current ar archive random library

from openssl.

nesterenkodm avatar nesterenkodm commented on May 25, 2024

got lots of the same errors.

Undefined symbols for architecture i386:
  "_closedir$UNIX2003", referenced from:
      _OPENSSL_DIR_end in libcrypto.a(o_dir.o)
  "_fopen$UNIX2003", referenced from:
      _BIO_new_file in libcrypto.a(bss_file.o)
      _file_ctrl in libcrypto.a(bss_file.o)
      _open_console in libcrypto.a(ui_openssl.o)
  "_fputs$UNIX2003", referenced from:
      _write_string in libcrypto.a(ui_openssl.o)
      _read_string in libcrypto.a(ui_openssl.o)
  "_fwrite$UNIX2003", referenced from:
      _send_fp_chars in libcrypto.a(a_strex.o)
      _file_write in libcrypto.a(bss_file.o)
      _file_puts in libcrypto.a(bss_file.o)
      _int_rsa_verify in libcrypto.a(rsa_sign.o)
      _dtls1_retransmit_buffered_messages in libssl.a(d1_both.o)
      _write_fp in libcrypto.a(b_dump.o)
      _TXT_DB_read in libcrypto.a(txt_db.o)
      ...
  "_opendir$INODE64$UNIX2003", referenced from:
      _OPENSSL_DIR_read in libcrypto.a(o_dir.o)
  "_readdir$INODE64", referenced from:
      _OPENSSL_DIR_read in libcrypto.a(o_dir.o)
  "_strerror$UNIX2003", referenced from:
      _ERR_load_ERR_strings in libcrypto.a(err.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from openssl.

nesterenkodm avatar nesterenkodm commented on May 25, 2024

lipo output

➜  lib-ios git:(master) ✗ lipo -info libssl.a 
Architectures in the fat file: libssl.a are: armv7 armv7s i386 x86_64 arm64 
➜  lib-ios git:(master) ✗ lipo -info libcrypto.a 
Architectures in the fat file: libcrypto.a are: armv7 armv7s i386 x86_64 arm64 

from openssl.

nesterenkodm avatar nesterenkodm commented on May 25, 2024

Also for 64 bit simulator:

Undefined symbols for architecture x86_64:
  "_opendir$INODE64", referenced from:
      _OPENSSL_DIR_read in libcrypto.a(o_dir.o)
  "_readdir$INODE64", referenced from:
      _OPENSSL_DIR_read in libcrypto.a(o_dir.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

May it be CocoaPods related issue ? CocoaPods/CocoaPods#2666

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

Fixed with 1.0.1.j-2. Please update.

from openssl.

ashavit avatar ashavit commented on May 25, 2024

Look like it fixed the compilation errors.
Thnx

from openssl.

nesterenkodm avatar nesterenkodm commented on May 25, 2024

Can't update to the 1.0.1.j-2 version since it have not yet appeared in the pod specs repository

➜  pod search openssl-universal


-> OpenSSL-Universal (1.0.1.j)
   OpenSSL for iOS and OS X
   pod 'OpenSSL-Universal', '~> 1.0.1.j'
   - Homepage: http://krzyzanowskim.github.io/OpenSSL/
   - Source:   https://github.com/krzyzanowskim/OpenSSL.git
   - Versions: 1.0.1.j, 1.0.1.i, 1.0.1.h, 1.0.1.g, 1.0.1.f [master repo]

from openssl.

krzyzanowskim avatar krzyzanowskim commented on May 25, 2024

$ pod search openssl-universal
Can't confirm. Is it possible that you have something outdated ?

http://cocoapods.org/?q=openssl-universal

-> OpenSSL-Universal (1.0.1.j-2)
OpenSSL for iOS and OS X
pod 'OpenSSL-Universal', '~> 1.0.1.j-2'

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.