Title: iOS: prebuilt Frame tree with inherited CSS direction triggers UIKit targetNode assertion · Issue #11586 · NativeScript/NativeScript · GitHub
Open Graph Title: iOS: prebuilt Frame tree with inherited CSS direction triggers UIKit targetNode assertion · Issue #11586 · NativeScript/NativeScript
X Title: iOS: prebuilt Frame tree with inherited CSS direction triggers UIKit targetNode assertion · Issue #11586 · NativeScript/NativeScript
Description: Reproduction: Core only, no renderer or router A native tree assembled before Application.run() with inherited CSS direction="ltr" around a Frame terminates when a TextField on a pushed Page is tapped. Constructing the identical tree ins...
Open Graph Description: Reproduction: Core only, no renderer or router A native tree assembled before Application.run() with inherited CSS direction="ltr" around a Frame terminates when a TextField on a pushed Page is tap...
X Description: Reproduction: Core only, no renderer or router A native tree assembled before Application.run() with inherited CSS direction="ltr" around a Frame terminates when a TextField on a pushed P...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/11586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS: prebuilt Frame tree with inherited CSS direction triggers UIKit targetNode assertion","articleBody":"### Reproduction: Core only, no renderer or router\n\nA native tree assembled **before** `Application.run()` with inherited CSS `direction=\"ltr\"` around a Frame terminates when a TextField on a pushed Page is tapped. Constructing the identical tree **inside** the application factory passes keyboard input and reversed/committed native Back.\n\nCore **9.1.3**, iOS runtime **9.1.0**; reproduced on iPhone 16 / iOS 18.6 and iPad Pro 11-inch M4 / iPadOS 18.6 simulators. This entry imports only `@nativescript/core`: no NativeScript-Vue, router, Drawer, leave guard, custom recognizer or delegate override.\n\nPinned project: https://github.com/rafaelaugustos/vue-router-ns/tree/2ad9f1e/examples/ios-direction-repro\nCore-only entry: https://github.com/rafaelaugustos/vue-router-ns/blob/2ad9f1e/examples/ios-direction-repro/src/app.js\nNative results and real demonstration video: https://github.com/rafaelaugustos/vue-router-ns/pull/158\n\n```sh\ncd examples/ios-direction-repro\nnpm ci\nnode scripts/resources.mjs\nns build ios # default Core-only entry; no --env.vue / --env.router\nxcrun simctl install SIMULATOR platforms/ios/build/Debug-iphonesimulator/iosdirectionrepro.app\nxcrun simctl launch SIMULATOR org.nativescript.directionrepro direction-mode=prebuilt-ltr\n```\n\nTap **Push detail**, then **Draft**: app terminates. Terminate/relaunch with `direction-mode=inherited-ltr`: the same Core tree built inside the factory passes the full native interaction test. `direction-mode=prebuilt-none` also passes. The locked project includes Vue/router dependencies only for separate comparison entries; this default entry does not import them.\n\nThe decisive order difference, using the same `createRoot()`:\n\n```js\n// Passing control\nApplication.run({ create: createRoot })\n\n// Failing alternative run\nconst root = createRoot() // includes inherited LTR, Frame and initial navigation\nApplication.run({ create: () => root })\n```\n\n### Original native exception\n\nLLDB attached to the **Core-only** iPhone run, breakpoint `objc_exception_throw`:\n\n```text\nInvalid parameter not satisfying: targetNode\n-[UIGestureGraphEdge initWithLabel:sourceNode:targetNode:directed:]\n-[UIGestureGraph addUniqueEdgeWithLabel:sourceNode:targetNode:directed:properties:]\n_UIGestureEnvironmentUpdate\n-[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]\n```\n\nThe later NativeScript EXC_BAD_ACCESS/exception-conversion failure and XCTest reporting “application is not running” are secondary symptoms.\n\n### Controls and limits\n\n- Factory-built inherited LTR: passes on iPhone and iPad, including typing and reversed/committed Back.\n- Prebuilt tree without direction: passes on both.\n- Prebuilt tree with inherited LTR: reproduces on both.\n- iPhone-only controls also pass: explicit ActionBar instances; navigation queued before Frame attachment inside the factory; only Frame created before startup; only root layout created before startup; prebuilt tree with LTR assigned on root `loaded`.\n- The late-direction variant is a diagnostic control, not a proposed global workaround. Dynamic RTL, other hosts and physical devices are not certified by these runs. No production patch is included yet.\n\nThis corrects the earlier reduction in https://github.com/nativescript-vue/nativescript-vue/issues/1186: its Core controls were created inside the application factory and therefore missed this initialization-order condition. Vue is not required to reproduce it. Downstream tracking: https://github.com/rafaelaugustos/vue-router-ns/issues/139.\n\nThe XCTest runner keeps `testPrebuiltLTR` deliberately failing; it does not mask the defect by disabling interactive Back. The remaining question is why the prebuilt inherited-direction tree creates this invalid UIKit gesture relationship and where Core can safely prevent it.\n","author":{"url":"https://github.com/rafaelaugustos","@type":"Person","name":"rafaelaugustos"},"datePublished":"2026-10-25T11:53:48Z","url":"https://github.com/NativeScript/NativeScript/issues/11586"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e5076b8-ca95-6383-6fc3-011cbfd95131 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC5A:2DBB21:14BE134:1B9CABA:6B013323 |
| html-safe-nonce | b5a86278a0874122b88424b6ea21daceb44495963ef5cb3a37cee4bc9cf8510d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzVBOjJEQkIyMToxNEJFMTM0OjFCOUNBQkE6NkIwMTMzMjMiLCJ2aXNpdG9yX2lkIjoiMTg2NTMxOTI1MzUyNDE2NTQxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4286866269e5528e40c073d84082729c3f5042349edca06a6b76dd6a538085fb |
| hovercard-subject-tag | issue:6024152386 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/11586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87421aa0c396d1448340578e243e6ab4bfe9ba27e8e3002c3378e6ee65eb23be/NativeScript/NativeScript/issues/11586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87421aa0c396d1448340578e243e6ab4bfe9ba27e8e3002c3378e6ee65eb23be/NativeScript/NativeScript/issues/11586 |
| og:image:alt | Reproduction: Core only, no renderer or router A native tree assembled before Application.run() with inherited CSS direction="ltr" around a Frame terminates when a TextField on a pushed Page is tap... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rafaelaugustos |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width