Skip to content

Conversation

shirakaba
Copy link
Collaborator

@shirakaba shirakaba commented Jul 30, 2025

About

This PR refactors the npm packages to distribute the iOS NativeScript.xcframework in a standard shape that will work on React Native, as detailed by the prebuild specification.

Repo structural changes

A summary of the main changes:

  dist/npm/framework/internal/XCFrameworks.zip/NativeScript.xcframework
- packages/ios/dist/ios-universal/NativeScript.xcframework
- packages/ios/NativeScript.podspec
+ packages/ios/index.js
+ packages/ios/build/Release/NativeScript.apple.node
+ scripts/build_xcframework.mts

You'll see I've ensured that the top-level package @nativescript/ios continues to include NativeScript.xcframework as before. So this change mainly affects the @nativescript/ios-node-api package.

I've not touched the macOS side of things, as @nativescript/macos-node-api already works fine on Node.js as-is. The only motivation to change it would be to extend support to react-native-macos, but as very few people use that, it's not my immediate priority.

packages/ios/build/Release/NativeScript.apple.node built with:

./build_all_ios.sh --no-engine --embed-metadata

Built with:

```sh
./build_all_ios.sh --no-engine --embed-metadata
```
@shirakaba shirakaba changed the title Follow the react-native-node-api standard approach to arranging Node-API modules for platforms other than non-Node.js Follow the react-native-node-api standard approach (for arranging Node-API modules for platforms other than non-Node.js) Jul 30, 2025
@shirakaba shirakaba changed the title Follow the react-native-node-api standard approach (for arranging Node-API modules for platforms other than non-Node.js) Adopt the react-native-node-api standard Node-API module structure Jul 30, 2025
@shirakaba shirakaba changed the title Adopt the react-native-node-api standard Node-API module structure Adopt the react-native-node-api standard Node-API module structure Jul 30, 2025
@shirakaba shirakaba closed this Sep 28, 2025
@shirakaba shirakaba deleted the react-native-ios-support branch September 28, 2025 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant