Skip to content

Instantly share code, notes, and snippets.

@nativescript-oss
nativescript-oss / README.md
Created September 29, 2026 14:29
ns-bitrig: run the NativeScript CLI against Bitrig's iOS simulators

ns-bitrig: NativeScript on Bitrig's simulators

Bitrig hosts its iOS simulators in its own device set (~/Library/Bitrig/Simulators); the NativeScript CLI only looks at Apple's default set, so ns run ios does not see them. ns-bitrig.sh runs the unmodified CLI with three process-local shims:

  • xcrun simctl … becomes xcrun simctl --set ~/Library/Bitrig/Simulators …;
  • open Simulator.app is skipped while Bitrig shows a booted device;
  • the CLI's installed-app lookup, which reads Apple's default simulator
@nativescript-oss
nativescript-oss / happy-new-year-2025.ts
Last active January 1, 2025 06:29
Happy New Year 2025 🎇 🎉
if (__ANDROID__) {
const androidDate = java.time.LocalDate.of(2025, 1, 1);
} else if (__APPLE__) {
const comp = NSDateComponents.new();
comp.year = 2025;
comp.month = 1;
comp.day = 1;