File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,28 @@ Thanks for [https://stackoverflow.com/questions/52717228/how-to-compile-openssl-
61
61
62
62
Copy ` openssl-1.1.0f.tar.gz ` to ` tools ` file folder and run
63
63
64
- ```
64
+ ``` shell
65
65
cd tools
66
66
sh ./build-openssl4ios.sh
67
67
```
68
68
69
69
Copy ` curl-7.53.1.tar.gz ` to ` tools ` file folder and run
70
70
71
- ```
71
+ ``` shell
72
72
cd tools
73
73
sh ./build-curl4ios.sh
74
74
```
75
75
76
+ ### Special things about building i386 architecture on Mojave
77
+
78
+ If you build ` i386 ` failed for link error on Mojave (macOS 10.14+).
79
+
80
+ Try to intall the header package of macOS 10.14:
81
+
82
+ ``` shell
83
+ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
84
+ ```
85
+
76
86
### For Android
77
87
78
88
Set ENV ` NDK_ROOT `
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ PLATFORMS=("iPhoneOS" "iPhoneOS" "iPhoneOS" "iPhoneSimulator" "iPhoneSimulator")
37
37
DEVELOPER=` xcode-select -print-path`
38
38
SDK_VERSION=` xcrun -sdk iphoneos --show-sdk-version`
39
39
rm -rf " ${HEADER_DEST_DIR} " " ${LIB_DEST_DIR} " " ${LIB_NAME} "
40
- [ -f " ${LIB_NAME} .tar.gz" ] || wget https://www.openssl.org/source/${LIB_NAME} .tar.gz;
40
+ [ -f " ${LIB_NAME} .tar.gz" ] || curl https://www.openssl.org/source/${LIB_NAME} .tar.gz > ${LIB_NAME} .tar.gz
41
41
42
42
# Unarchive library, then configure and make for specified architectures
43
43
configure_make ()
@@ -112,5 +112,4 @@ create_lib()
112
112
}
113
113
mkdir " ${LIB_DEST_DIR} " ;
114
114
create_lib " libcrypto.a" " ${LIB_DEST_DIR} /libcrypto.a"
115
- create_lib " libssl.a" " ${LIB_DEST_DIR} /libssl.a"
116
-
115
+ create_lib " libssl.a" " ${LIB_DEST_DIR} /libssl.a"
You can’t perform that action at this time.
0 commit comments