@@ -157,32 +157,36 @@ if $BUILD_VISION; then
157
157
fi
158
158
159
159
if [[ -n " ${XCFRAMEWORKS[@]} " ]]; then
160
-
161
-
162
- if [[ " $TARGET_ENGINE " == " none" ]]; then
163
- checkpoint " Creating the XCFramework (NativeScript.apple.node)"
164
-
165
- # We adhere to the prebuilds standard as described here:
166
- # https://github.com/callstackincubator/react-native-node-api/blob/9b231c14459b62d7df33360f930a00343d8c46e6/docs/PREBUILDS.md
167
- OUTPUT_DIR=" packages/ios/build/$CONFIG_BUILD /NativeScript.apple.node"
168
- rm -rf $OUTPUT_DIR
169
- deno run -A ./scripts/build_xcframework.mts --output " $OUTPUT_DIR " ${XCFRAMEWORKS[@]}
170
- else
171
- checkpoint " Creating NativeScript.xcframework"
172
-
173
- OUTPUT_DIR=" $DIST /NativeScript.xcframework"
174
- rm -rf $OUTPUT_DIR
175
- xcodebuild -create-xcframework ${XCFRAMEWORKS[@]} -output " $OUTPUT_DIR "
176
- fi
177
-
160
+ if [[ " $TARGET_ENGINE " == " none" ]]; then
161
+ checkpoint " Creating the XCFramework for iOS (NativeScript.apple.node)"
162
+
163
+ # We adhere to the prebuilds standard as described here:
164
+ # https://github.com/callstackincubator/react-native-node-api/blob/9b231c14459b62d7df33360f930a00343d8c46e6/docs/PREBUILDS.md
165
+ OUTPUT_DIR=" packages/ios/build/$CONFIG_BUILD /NativeScript.apple.node"
166
+ rm -rf $OUTPUT_DIR
167
+ deno run -A ./scripts/build_xcframework.mts --output " $OUTPUT_DIR " ${XCFRAMEWORKS[@]}
168
+ else
169
+ checkpoint " Creating NativeScript.xcframework"
170
+
171
+ OUTPUT_DIR=" $DIST /NativeScript.xcframework"
172
+ rm -rf $OUTPUT_DIR
173
+ xcodebuild -create-xcframework ${XCFRAMEWORKS[@]} -output " $OUTPUT_DIR "
174
+ fi
178
175
fi
179
176
180
177
if $BUILD_MACOS ; then
181
-
182
- checkpoint " Creating NativeScript.node"
183
-
184
- cp -r " $DIST /intermediates/macos/$CONFIG_BUILD /libNativeScript.dylib" " $DIST /NativeScript.node"
185
-
178
+ if [[ " $TARGET_ENGINE " == " none" ]]; then
179
+ checkpoint " Creating the XCFramework for macOS (NativeScript.apple.node)"
180
+
181
+ # We adhere to the prebuilds standard as described here:
182
+ # https://github.com/callstackincubator/react-native-node-api/blob/9b231c14459b62d7df33360f930a00343d8c46e6/docs/PREBUILDS.md
183
+ OUTPUT_DIR=" packages/macos/build/$CONFIG_BUILD /NativeScript.apple.node"
184
+ rm -rf $OUTPUT_DIR
185
+ deno run -A ./scripts/build_xcframework.mts --output " $OUTPUT_DIR " ${XCFRAMEWORKS[@]}
186
+ else
187
+ checkpoint " Creating NativeScript.node for macOS"
188
+ cp -r " $DIST /intermediates/macos/$CONFIG_BUILD /libNativeScript.dylib" " $DIST /NativeScript.node"
189
+ fi
186
190
fi
187
191
188
192
if $BUILD_MACOS_CLI ; then
0 commit comments