NativeScript iOS Daily: Fixing Natively Retained Lifetime Hazards
Two runtime changes tackle the same garbage-collector hazard where natively retained JavaScript subclasses come back holding released state. Together they add an opt-in keep-alive and traceable failures for use-after-release.
Duration: PT2M6S
Episode overview
This episode is a short developer briefing from NativeScript iOS Daily.
It explains recent repository work in plain language.
- Show: NativeScript iOS Daily
- Published: 2026-10-11T13:09:40Z
- Audio duration: PT2M6S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, it's Sunday, October 11th, 2026, and you're listening to NativeScript iOS Daily.
The big signal from the iOS runtime is lifetime safety for natively retained subclasses, with one change to prevent use-after-release and a companion change to make it debuggable when it still happens.
First, prevention. Today, when native code retains an instance of a JavaScript-built class, the runtime keeps it alive by blocking its finalizer, not by holding a strong reference. That still lets the garbage collector finalize everything reachable only through that instance's JavaScript properties, leaving the…
Second, clearer failures. Even with an opt-in fix, existing code can still hit the empty-shell case, and today that shows up as obscure crashes or silent corruption. Pull request 508 makes calls into Objective C objects the collector already released fail in a traceable way, and in debug builds it names what…
What's next to watch is adoption and rollout risk. If you subclass native views or controllers and stash JavaScript state on them, expect guidance on when to use the new keep-alive helper versus relying on cycle collection, plus louder errors where you get it wrong. Test debug…
Tha…
Nearby episodes from NativeScript iOS Daily
- Worker Reliability and Block Lifetime Fixes
- Faster Native Calls, Safer Missing APIs
- Worker Control, Message Safety, and Native Call Speed
- Worker Errors Fail Loudly
- Worker Lifetime Fixes and Slimmer Framework
- Proxy Unwrapping Fix for Vue Reactivity
- Retain Return Fix for Startup Crash
- AI Agent Ignore Rules Update