Error ealier when framework names collide and clean up when resolved

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

Nobody has claimed this yet.

Assessment

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

Research direction

No source file, test, or entry point is named. Reproduce the installation with two frameworks that have different paths but the same identifier, then trace Node-API framework installation and build-folder cleanup. Done means collisions fail earlier and the issue provides a reliable recovery path after one framework is removed.

Written by the indexing model from the issue text.

Description

Apple 🍎 Host 🏡 Linking 🔗

After #351 merged and while experimenting with #363 I had frameworks on the filesystem with different path but same identifiers and got this error while installing an app.

Please try again later. Found bundle at /Users/kraenhansen/Library/Developer/CoreSimulator/Devices/4EDDABA6-E72F-4FBF-85C5-576A9A9EA5F5/data/Library/Caches/com.apple.mobile.installd.staging/temp.nhmXW6/extracted/ReactTestApp.app/Frameworks/node-addon-examples--example-2-hello.framework with the same identifier (example-2.hello) as bundle at /Users/kraenhansen/Library/Developer/CoreSimulator/Devices/4EDDABA6-E72F-4FBF-85C5-576A9A9EA5F5/data/Library/Caches/com.apple.mobile.installd.staging/temp.nhmXW6/extracted/ReactTestApp.app/Frameworks/example-2--hello.framework

After deleting one of these, the error persisted.

Ideally - we should check and fail if Node-API frameworks collide and investigate if it would be possible to provide a better recovery method than cleaning the build folder.

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.