惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
腾讯CDC
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
博客园 - 司徒正美
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
Vercel News
Vercel News
爱范儿
爱范儿
Last Week in AI
Last Week in AI
G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
D
DataBreaches.Net
博客园_首页
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
V
V2EX
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Our app worked everywhere except TestFlight: the Expo SDK...
Pratik Chudasama · 2026-06-28 · via DEV Community

Pratik Chudasama

The worst kind of bug is the one that works on your machine, works in the simulator, works on a real device over the dev server, and then dies the moment it hits a production build. No code changed. Same commit. It just crashes.

That was my last few days. We ship a multi-tenant React Native app built with Expo (one codebase, a handful of pharmacy clients). After upgrading to Expo SDK 53, the iOS build started crashing on launch in TestFlight. Local dev was completely fine. The release build was dead on arrival.

If you've hit this on SDK 53 or later, here's what's going on.

The cause

In SDK 53, the New Architecture is enabled by default. In SDK 52 it was opt-in. So just by upgrading, we silently moved the whole app onto a new rendering and native-module system (Fabric and TurboModules), whether our dependencies were ready for it or not.

That's the trap. The upgrade didn't feel risky. There was no warning prompt. The default just changed underneath us.

Why it crashed in production but not in dev

This is what cost me the most time, so it's worth being clear about.

A native module that isn't New Architecture compatible doesn't always fail loudly in development. Dev builds are forgiving, and you might not even hit the screen that touches the broken module. So everything looks fine.

The release build is stricter and actually exercises the native side properly. So a module that was quietly limping along in dev turns into a hard crash on launch in TestFlight. Same code, different runtime.

The lesson that stuck: "works in dev" and "works in a release build" are two different claims when native code is involved. I'd been treating them as the same.

How I tracked it down

Nothing clever, just a process:

  1. Get the native crash log, not the JS error. A native crash on launch won't give you a friendly red screen. I pulled the crash report from Xcode (Window > Devices & Simulators > View Device Logs) to get the real stack trace.

  2. Find the culprit in the trace. For us it was our animation library, react-native-reanimated. It wasn't my code. It was a heavily native dependency, and the version we were pinned to hadn't caught up to the New Architecture. In hindsight it was the obvious first suspect, since reanimated is about the most native-heavy thing in a typical app.

  3. Run the doctor. This was the tool I didn't know existed:

   npx expo-doctor

It checks your packages against React Native Directory and flags anything untested, unmaintained, or incompatible with the New Architecture. That's when it clicked that this was a dependency problem, not a problem with my code.

The fix

There's a fast fix and a proper fix, and you probably want both in that order.

Fast: opt out and ship. If you have users waiting, turn the New Architecture back off in app.json:

{
  "expo": {
    "ios": { "newArchEnabled": false },
    "android": { "newArchEnabled": false }
  }
}

Rebuild and you're back on the old architecture your dependencies already supported. This bought me a stable release while I fixed the real thing. One caveat: this is temporary by design. From SDK 55 (React Native 0.82) onward, you can't disable the New Architecture anymore, so opting out buys time, it doesn't solve it.

Proper: get your dependencies ready. Let Expo pick the version that's actually aligned with your SDK instead of guessing one off npm:

npx expo install react-native-reanimated

That alignment was the fix for us. A lot of libraries already have a compatible release out, you're just pinned to an older one. If a library is genuinely unmaintained with no support, swap it for a maintained one. Then re-run expo-doctor until it's clean and test the release build, not just dev.

What I'd tell past me

A default changing is still a breaking change, even when the changelog is calm about it. "New Architecture enabled by default" is one line in the notes and it rewires how your whole app runs. Read the quiet lines as the dangerous ones.

Test the release build before you trust an upgrade. The gap between "runs in dev" and "runs in TestFlight" is exactly where this kind of bug lives. And run expo-doctor before shipping, not after. It would have shown me the bad dependency up front and saved me the whole crash.

None of this was wizardry. A default I didn't notice, a release build I didn't test, and a tool I didn't know to run. Most of the scary native crashes I've hit turned out to be one boring, knowable thing in a frightening costume.

If your TestFlight build just died on launch mid-upgrade, check the New Architecture first.


If you've upgraded to SDK 53 or later, what was the library that broke your build? I'm curious whether most of these trace back to the same handful of native-heavy dependencies, or if it's more spread out than I think.