From d7d1088d21a3014cee470581846bfceb92584bd2 Mon Sep 17 00:00:00 2001 From: moluopro Date: Fri, 9 Jan 2026 23:35:58 +0800 Subject: [PATCH 1/2] docs: fix iOS build script & use xcrun SDK path --- docs/install.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/install.md b/docs/install.md index e6a70ac378..0a63ffa804 100644 --- a/docs/install.md +++ b/docs/install.md @@ -712,11 +712,12 @@ fully working OpenBLAS for this platform. Go to the directory where you unpacked OpenBLAS,and enter the following commands: ```bash -CC=/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang +CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -CFLAGS= -O2 -Wno-macro-redefined -isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -arch arm64 -miphoneos-version-min=10.0 +SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)" +CFLAGS="-O2 -Wno-macro-redefined -isysroot $SDKROOT -arch arm64 -miphoneos-version-min=10.0" -make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 +make libs TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 ``` Adjust `MIN_IOS_VERSION` as necessary for your installation. E.g., change the version number to the minimum iOS version you want to target and execute this file to build the library. From a514760e06ef4472f5054bbf98448fb5cd5a90f9 Mon Sep 17 00:00:00 2001 From: moluopro Date: Sat, 10 Jan 2026 21:14:05 +0800 Subject: [PATCH 2/2] Change 'make libs' back to 'make' --- docs/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.md b/docs/install.md index 0a63ffa804..5e31b50661 100644 --- a/docs/install.md +++ b/docs/install.md @@ -717,7 +717,7 @@ CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha SDKROOT="$(xcrun --sdk iphoneos --show-sdk-path)" CFLAGS="-O2 -Wno-macro-redefined -isysroot $SDKROOT -arch arm64 -miphoneos-version-min=10.0" -make libs TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 +make TARGET=ARMV8 DYNAMIC_ARCH=1 NUM_THREADS=32 HOSTCC=clang NOFORTRAN=1 ``` Adjust `MIN_IOS_VERSION` as necessary for your installation. E.g., change the version number to the minimum iOS version you want to target and execute this file to build the library.