Stop autolinking iOS-only Node-API modules when running `pod install` for `react-native-macos`

Open
#272 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, react-native, typescript

Research direction

Start by tracing the autolinking entry point used during pod install for react-native-macos, comparing @nativescript/ios-node-api with @nativescript/macos-node-api. Done means the iOS-only module is omitted from a macOS install while the macOS module remains linked and the reported build failure is resolved.

Written by the indexing model from the issue text.

Description

Here, I have an iOS + macOS project that installs both @nativescript/ios-node-api and @nativescript/macos-node-api.

For one thing, there's no need to link the iOS package when I'm running a pod install for my macOS app, and yet it still does so:

Image

For another thing, I seem to be getting a relevant build failure. I wonder if my macOS app is being forced to link against the iOS framework or something?

Image

For now, I'll work round it by uninstalling @nativescript/ios-node-api from this demo repo. Just trying to see some signs of life.

Dominant language
TypeScript
Stars
206
Forks
12
Avg merge
4h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/react-native-node-api

All issues in callstackincubator/react-native-node-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.