Skip to content

iOS build not working #953

Closed
Closed
@steven-pearson

Description

@steven-pearson

With Xcode 10.1 build fails with 'Could not find OpenSSL for iPhone'

Build_iOS/configure.sh is looking into specific iOS version folders which may not be there (i.e. 10.1 has 12.1 sdk). Suggested changes

-    if [ -e OpenSSL-for-iPhone/bin/iPhoneOS11.4-arm64.sdk/include ]
-    then
-        cp -r OpenSSL-for-iPhone/bin/iPhoneOS11.4-arm64.sdk/include openssl
-    elif [ -e OpenSSL-for-iPhone/bin/iPhoneOS12.0-arm64.sdk/include ]
-    then
-        cp -r OpenSSL-for-iPhone/bin/iPhoneOS12.0-arm64.sdk/include openssl
-    else
-        echo 'Could not find OpenSSL for iPhone'
-        exit 1
-    fi
+    cp -r OpenSSL-for-iPhone/include openssl
     cp OpenSSL-for-iPhone/include/LICENSE openssl
-    lipo -create -output openssl/lib/libssl.a OpenSSL-for-iPhone/bin/iPhone*/lib/libssl.a
-    lipo -create -output openssl/lib/libcrypto.a OpenSSL-for-iPhone/bin/iPhone*/lib/libcrypto.a
+	cp OpenSSL-for-iPhone/lib/* openssl/lib

Builds and maintains the openssl/* directory structure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions