Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected iOS build scripts for more robust building chances of success #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/ios/build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ COMMIT=$(git log -1 --pretty=format:"%H")
OS="IOS"
sed -i '' "/\/\*${OS}_VERSION/c\\/\*${OS}_VERSION\*\/ const ${OS}_VERSION = \"$COMMIT\";" $VERSIONS_FILE
cd $MOBILE_LIB_ROOT
cmake . -DCMAKE_TOOLCHAIN_FILE="${IOS_TOOLCHAIN_ROOT}/toolchain/iOS.cmake" && make -j4

LIBRARY_PATH="" LD_LIBRARY_PATH="" cmake . \
-DCMAKE_TOOLCHAIN_FILE="${IOS_TOOLCHAIN_ROOT}/toolchain/iOS.cmake" \
-DCMAKE_OSX_ARCHITECTURES="arm64" \
&& LIBRARY_PATH="" LD_LIBRARY_PATH="" make -j4

plutil -replace CFBundleShortVersionString -string "0.0.2" ./mobileliblelantus.framework/Info.plist
plutil -replace CFBundleVersion -string "1" ./mobileliblelantus.framework/Info.plist
Expand Down
2 changes: 1 addition & 1 deletion scripts/ios/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd "$OPEN_SSL_DIR_PATH" || exit 1
git checkout b77ace70b2594de69c88d0748326d2a1190bbac1
sed -i '' "s/IOS_MIN_SDK_VERSION=\"12.0\"/IOS_MIN_SDK_VERSION=\"10.0\"/g" build-libssl.sh

CURL_OPTIONS="-L" ./build-libssl.sh --version=1.1.1k --archs="x86_64 arm64 armv7s armv7" --targets="ios64-cross-arm64 ios-cross-armv7 ios-cross-armv7s" --deprecated
CURL_OPTIONS="-L" ./build-libssl.sh --version=1.1.1k --archs="x86_64 arm64" --targets="ios64-cross-arm64" --deprecated

mv "${OPEN_SSL_DIR_PATH}"/include/* "$EXTERNAL_IOS_INCLUDE_DIR"
mv "${OPEN_SSL_DIR_PATH}"/lib/* "$EXTERNAL_IOS_LIB_DIR"