Code Monkey home page Code Monkey logo

openssl-iosx's People

Contributors

apotocki avatar krasylnikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

openssl-iosx's Issues

Build doesn't respect ARCHS build setting in cocoapods

Some of my cocoapods include arm64 simulator build support and some don't. To get a working simulator build on M1 I use ARCHS[sdk=iphonesimulator*] to force all pods to build for x86_64 simulator using Rosetta, like this:

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
      end
    end
  end

but your build script doesn't account for that variable. On my M1, the script only builds the arm64 simulator library, meaning I can no longer build for simulator (since some libs only have x86_64, and yours only has arm64).

How can I force this library to build for x86_64 simulator? I'm also investigating if I can get my other pods to build for arm64, but I'm not sure which approach will be more viable.

Fail to use it in Swift code

Hello, I'm facing an issue while trying to use this lib in my swift code.

I did import it in pod file with such line:
pod 'openssl-iosx', '~> 1.1.1o.1'

I found a way to use it in my Obj-C code by importing separate headers, ex.
#import <openssl/x509.h>

But when I add library import to .swift file, ex.
import openssl or import openssl_iosx
than compiler issue arise :

No such module 'openssl_iosx'

How can I use openssl code in swift files?

Changes for Xcode 13.3

Just had a go w/ Xcode 13.3. Everything worked pretty well, I just had to bump the target spec and bitcode to make it work:

diff --git a/scripts/build.sh b/scripts/build.sh
index 31a2b47..25551ec 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -42,7 +42,7 @@ make clean
 fi

 if [ ! -d $BUILD_DIR/build/lib.catalyst ]; then
-./Configure --prefix="$BUILD_DIR/build" --openssldir="$BUILD_DIR/build/ssl" no-shared darwin64-$HOST_ARC-cc --target=$BUILD_ARC-apple-ios13.0-macabi -isysroot $MACSYSROOT/SDKs/MacOSX.sdk -I$MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/usr/include/ -isystem $MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/usr/include -iframework $MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks
+./Configure --prefix="$BUILD_DIR/build" --openssldir="$BUILD_DIR/build/ssl" no-shared darwin64-$HOST_ARC-cc --target=$BUILD_ARC-apple-ios13.4-macabi -isysroot $MACSYSROOT/SDKs/MacOSX.sdk -I$MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/usr/include/ -isystem $MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/usr/include -iframework $MACSYSROOT/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks
 make clean
 make -j$THREAD_COUNT

@@ -65,7 +65,7 @@ fi


 if [ ! -d $BUILD_DIR/build/lib.ios ]; then
-./Configure --prefix="$BUILD_DIR/build" --openssldir="$BUILD_DIR/build/ssl" no-shared no-dso no-hw no-engine ios64-xcrun -fembed-bitcode-marker
+./Configure --prefix="$BUILD_DIR/build" --openssldir="$BUILD_DIR/build/ssl" no-shared no-dso no-hw no-engine ios64-xcrun -fembed-bitcode
 make clean
 make -j$THREAD_COUNT

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.