@@ -23,13 +23,15 @@ rm -rf "${SOURCES_DIR}" # Remove old Sources dir
23
23
rm -rf " ${XCFRAMEWORK_DIR} " # Remove old <NAME>.xcframework dir
24
24
25
25
# Install targets
26
- rustup target add aarch64-apple-ios # iOS arm64
27
- rustup target add x86_64-apple-ios # iOS x86_64
28
- rustup target add aarch64-apple-ios-sim # simulator mac M1
29
- rustup target add aarch64-apple-darwin # mac M1
30
- rustup target add x86_64-apple-darwin # mac x86_64
31
- rustup target add aarch64-apple-ios-macabi # mac catalyst arm64
32
- rustup target add x86_64-apple-ios-macabi # mac catalyst x86_64
26
+ rustup target add aarch64-apple-ios # iOS arm64
27
+ rustup target add x86_64-apple-ios # iOS x86_64
28
+ rustup target add aarch64-apple-ios-sim # simulator mac M1
29
+ rustup target add aarch64-apple-darwin # mac M1
30
+ rustup target add x86_64-apple-darwin # mac x86_64
31
+ rustup target add aarch64-apple-ios-macabi # mac catalyst arm64
32
+ rustup target add x86_64-apple-ios-macabi # mac catalyst x86_64
33
+ rustup target add aarch64-apple-visionos # visionOS arm64
34
+ rustup target add aarch64-apple-visionos-sim # visionOS simulator
33
35
34
36
# Build iOS and Darwin targets
35
37
cargo build -p nostr-sdk-ffi --lib --release --target x86_64-apple-darwin
@@ -39,6 +41,8 @@ cargo build -p nostr-sdk-ffi --lib --release --target aarch64-apple-ios
39
41
cargo build -p nostr-sdk-ffi --lib --release --target aarch64-apple-ios-sim
40
42
cargo build -p nostr-sdk-ffi --lib --release --target aarch64-apple-ios-macabi
41
43
cargo build -p nostr-sdk-ffi --lib --release --target x86_64-apple-ios-macabi
44
+ cargo build -p nostr-sdk-ffi --lib --release --target aarch64-apple-visionos
45
+ cargo build -p nostr-sdk-ffi --lib --release --target aarch64-apple-visionos-sim
42
46
43
47
# Make universal dirs
44
48
mkdir -p " ${TARGET_DIR} /ios-universal-sim/release" # iOS Simulator
@@ -91,6 +95,10 @@ xcodebuild -create-xcframework \
91
95
-headers " ${FFI_HEADERS_DIR} " \
92
96
-library " ${TARGET_DIR} /maccatalyst-universal/release/${STATIC_LIB} " \
93
97
-headers " ${FFI_HEADERS_DIR} " \
98
+ -library " ${TARGET_DIR} /aarch64-apple-visionos/release/${STATIC_LIB} " \
99
+ -headers " ${FFI_HEADERS_DIR} " \
100
+ -library " ${TARGET_DIR} /aarch64-apple-visionos-sim/release/${STATIC_LIB} " \
101
+ -headers " ${FFI_HEADERS_DIR} " \
94
102
-output " ${XCFRAMEWORK_DIR} "
95
103
96
104
echo " Done!"
0 commit comments