NativeScript / NativeScript/ios

Readout of deviceId crashes runtime

Open
#124 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.