Skip to content

Commit

Permalink
Fixed issue with non-modular header <inttypes.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandrade committed Feb 28, 2022
1 parent 62ff727 commit 331ee70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OpenSSL.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "HEADERS_SOURCE_DIR=\"$TARGET_BUILD_DIR/headers/openssl\"\nHEADERS_INSTALL_DIR=\"$BUILT_PRODUCTS_DIR\"/\"$PUBLIC_HEADERS_FOLDER_PATH\"\nHEADER_LIST=`ls \"$HEADERS_SOURCE_DIR\"/*.h | grep -v \"asn1_mac.h\"`\n\nmkdir -p \"$HEADERS_INSTALL_DIR\"\nfor HEADER in $HEADER_LIST; do\n cp \"$HEADER\" \"${HEADERS_INSTALL_DIR}\"\ndone\n\nsed -i.bak \"s/\\<openssl\\//\\<OpenSSL\\//g\" \"$HEADERS_INSTALL_DIR/\"*\ncd \"$HEADERS_INSTALL_DIR\"\nrm *.bak\nls *.h | grep -v \"OpenSSL.h\" | sed -Ee \"s|(.+\\.h)$|#include <OpenSSL\\/\\1>|\" >> \"$HEADERS_INSTALL_DIR\"/OpenSSL.h\n";
shellScript = "HEADERS_SOURCE_DIR=\"$TARGET_BUILD_DIR/headers/openssl\"\nHEADERS_INSTALL_DIR=\"$BUILT_PRODUCTS_DIR\"/\"$PUBLIC_HEADERS_FOLDER_PATH\"\nHEADER_LIST=`ls \"$HEADERS_SOURCE_DIR\"/*.h | grep -v \"asn1_mac.h\"`\n\nmkdir -p \"$HEADERS_INSTALL_DIR\"\nfor HEADER in $HEADER_LIST; do\n cp \"$HEADER\" \"${HEADERS_INSTALL_DIR}\"\ndone\n\nsed -i.bak \"s/<openssl\\//\\<OpenSSL\\//g\" \"$HEADERS_INSTALL_DIR/\"*\nsed -i.bak \"s/<inttypes\\.h>/<sys\\/types\\.h>/g\" \"$HEADERS_INSTALL_DIR/\"*\ncd \"$HEADERS_INSTALL_DIR\"\nrm *.bak\nls *.h | grep -v \"OpenSSL.h\" | sed -Ee \"s|(.+\\.h)$|#include <OpenSSL\\/\\1>|\" >> \"$HEADERS_INSTALL_DIR\"/OpenSSL.h\n\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "OpenSSL",
url: "https://github.com/OuterCorner/OpenSSL/releases/download/1.2.0/OpenSSL.xcframework.zip",
checksum: "b3949aaac5cb0ccb4e9d426a62f3ae858260e6c253972a663a9f46b7b261b0e1"
url: "https://github.com/OuterCorner/OpenSSL/releases/download/1.2.1/OpenSSL.xcframework.zip",
checksum: "c39deefb852b1604a5028bf7f71ff92d9e5c78fc6725d589173e092f22b902b6"
)
]
)

0 comments on commit 331ee70

Please sign in to comment.