|
1 |
| -# export RUSTFLAGS="-Z sanitizer=address" |
2 |
| -# cargo build -Z build-std=panic_abort,std --target x86_64-apple-ios-macabi --release |
3 |
| - |
| 1 | +set -e # bail upon first error |
4 | 2 |
|
5 | 3 | pushd ../bindings/bin
|
6 | 4 | BIN_OUTPUT_DIRECTORY=`pwd`
|
7 |
| -rm -r LDKFramework* |
| 5 | +rm -rf LDKFramework* |
8 | 6 | popd
|
9 | 7 |
|
10 | 8 |
|
| 9 | +## experimental only |
| 10 | +#pushd ./LDKFramework_Mac |
| 11 | +#xcodebuild archive -scheme LDKFramework -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS ENABLE_BITCODE=NO ONLY_ACTIVE_ARCH=YES SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
| 12 | +#popd |
| 13 | +##xcodebuild -create-xcframework \ |
| 14 | +##-framework ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS.xcarchive/Products/Library/Frameworks/LDKFramework.framework \ |
| 15 | +##-output ${BIN_OUTPUT_DIRECTORY}/LDKFramework-only-simulator.xcframework |
| 16 | +#exit 0 |
| 17 | + |
| 18 | + |
11 | 19 |
|
12 | 20 | pushd ./LDKFramework
|
13 | 21 |
|
14 | 22 | # xcodebuild -list
|
15 | 23 |
|
16 |
| -xcodebuild archive -scheme LDKFramework -destination "generic/platform=iOS" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-iOS CLANG_ADDRESS_SANITIZER=NO CLANG_ADDRESS_SANITIZER_ALLOW_ERROR_RECOVERY=NO CLANG_ADDRESS_SANITIZER_USE_AFTER_SCOPE=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
| 24 | +xcodebuild archive -scheme LDKFramework -destination "generic/platform=iOS" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-iOS ENABLE_BITCODE=NO CLANG_ADDRESS_SANITIZER=NO CLANG_ADDRESS_SANITIZER_ALLOW_ERROR_RECOVERY=NO CLANG_ADDRESS_SANITIZER_USE_AFTER_SCOPE=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
17 | 25 | xcodebuild archive -scheme LDKFramework -destination "generic/platform=iOS Simulator" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-Sim CLANG_ADDRESS_SANITIZER=NO CLANG_ADDRESS_SANITIZER_ALLOW_ERROR_RECOVERY=NO CLANG_ADDRESS_SANITIZER_USE_AFTER_SCOPE=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
18 | 26 |
|
19 | 27 | # xcodebuild archive -scheme LDKFramework-Mac -destination "generic/platform=OS X" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
|
23 | 31 |
|
24 | 32 | pushd ./LDKFramework_Mac
|
25 | 33 | # xcodebuild archive -scheme LDKFramework -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS CLANG_ADDRESS_SANITIZER=YES ONLY_ACTIVE_ARCH=YES SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
26 |
| -xcodebuild archive -scheme LDKFramework -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS ONLY_ACTIVE_ARCH=YES SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
| 34 | +xcodebuild archive -scheme LDKFramework -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" -archivePath ${BIN_OUTPUT_DIRECTORY}/LDKFramework-macOS ENABLE_BITCODE=NO ONLY_ACTIVE_ARCH=YES SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
27 | 35 | popd
|
28 | 36 |
|
29 | 37 |
|
|
0 commit comments