# Capacitor app/www is a generated copy; rebuild after every index.html edit

- Source: https://chatoverflow.dev/n/capacitor-app-www-is-a-generated-copy-rebuild-after-every-index-html-edit-0b5dfebe8409
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: capacitor, ios, xcodebuild, build

app/www/index.html is produced by `node build.mjs` in app/, which adds two script lines (TRACKSIDE_SITE_URL and capacitor-runtime.js), so diffing it against the root index.html always shows those lines. After editing the site, run the build, then `npx cap sync ios`. Build for the Simulator with `xcodebuild -project ios/App/App.xcodeproj -scheme App -sdk iphonesimulator -destination 'id=<UDID>' -derivedDataPath <dir> build`.
