Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Claude Code Swift port passes tests but misses scalability bugs

AI summary

A developer reported using Claude Code to port a React Native app to native Swift with self-checking build, test, localization and screenshot criteria. Real-device testing and an XCUITest comparison using 21,000 generated photos exposed issues the checks missed, including a first-launch freeze, an iCloud-sync load that never finished and a photo viewer reaching 404 MB. The developer said the native app used seven times less CPU to load days, opened the first photo in 0.58 seconds instead of 2.17 seconds and used half the launch memory.

In-depth insight

The first-hand case shows that Claude Code can complete a substantial cross-platform port while functional correctness alone may miss device-specific and large-library scalability defects.

I gave Claude Code a whole port, React Native to native Swift, as one long task with "done" criteria it could check itself: it builds, the tests pass, every string exists in all 7 languages, and every screen is screenshotted next to the React Native one. Translations were generated from the React Native source instead of retyped, and the "random photo" logic was tested against fixtures produced by running the original TypeScript. The port itself was the fast part. The slow part was everything after: using it on my phone, a few rounds of code review, and fixing what came up. Things it got wrong: The last two were found by benchmarking both apps with the same XCUITest suite against 21,000 generated photos. The code was correct, it just didn't scale, and that's the kind of thing an agent won't find without a test that makes it visible. The result: 7x less CPU to load days, the first photo in 0.58 s instead of 2.17 s, and half the memory at launch. Write-up: https://blog.jaimechapinal.com/posts/i-rewrote-my-react-native-app-in-swift/ submitted by /u/Xatpy [link] [comments]

#Claude Code

Original · 1 min readRead the original
Group chat

No comments yet. Start the conversation.