NativeScript / NativeScript/ios
Readout of deviceId crashes runtime
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 150
- Forks
- 43
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Hello together,
I have the following code snipped which I used to read out the deviceId. The last line now crashes the runtime. If someone know of a workaround, would be great to have it mentioned here. Thanks!
"@nativescript/ios":
"version": "8.1.0-rc.1",
const systemInfo = new interop.Reference();
uname(systemInfo);
deviceId = NSString.stringWithUTF8String(systemInfo.value.machine).toString();
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the crash with @nativescript/ios 8.1.0-rc.1 using the reported interop.Reference, uname, and NSString.stringWithUTF8String sequence. Start by tracing the deviceId readout through the iOS runtime interop; done means the readout no longer crashes or a verified workaround is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100