You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 733e594
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(ios): share DerivedData with Xcode and speed up incremental builds (#6178)
* feat(ios): share DerivedData with Xcode and speed up incremental builds
DerivedData moves into platforms/ios/build through the per-user WorkspaceSettings, so CLI and Xcode builds reuse each other's output. Settings that made the two builds differ come off the xcodebuild command line: -sdk and forced explicit modules are gone, and the deployment target moves into the Podfile post_install.
Simulator builds target the specific destination, debug device builds use a plain build instead of an archive, and the compilation cache lives in platforms/.cache/ios. Device discovery stops waiting as soon as the requested device is found.
* fix(ios): don't end device discovery on the wrong device
With 100 ms polling, an unrelated device ended the wait almost immediately. A requested device now only ends it by being found, and otherwise the 2 seconds the old polling allowed still apply, so device indexes stay stable.
* fix(ios): keep pod build settings literal and out of pod-less apps
The build-settings post_install section was written for every app, so apps
without pods got a Podfile and ran `pod install` on every prepare. It's now
only added when the project already has a Podfile, and removed first so it
never keeps one alive on its own. Removing sections no longer leaves a
Podfile that only differs from the empty default by blank lines.
Values were written as Ruby double-quoted strings, which interpolate `#{}`,
`#$` and `#@`. A build.xcconfig value or project path containing them ran as
Ruby during `pod install`. They're now single-quoted literals.
* fix(ios): keep macro packages, provisioned debug builds and old output paths working
- Pass SWIFT_ENABLE_EXPLICIT_MODULES=NO when Package.resolved pins
swift-syntax (i.e. a package ships macros), so Xcode 26 builds of those
apps keep working. Other apps still leave it to Xcode and share
DerivedData with it; build.xcconfig still wins either way.
- Archive and export debug device builds when --provision,
mobileProvisionIdentifier or --i-cloud-container-environment is set, so
the export method, extension profiles and iCloud environment still apply.
- Copy the built .app/.ipa to platforms/ios/build/<Config>-<sdk>/ as well
(an APFS clone), so CI scripts and Detox binaryPath settings that use the
old location keep working. A failed copy only warns.
- Podfile build settings hook: skip non-numeric deployment targets instead
of letting Gem::Version raise, and walk installer.generated_projects so
generate_multiple_pod_projects setups get the settings too.
- Move the DerivedData/compilation-cache path helpers into
lib/services/ios/ios-build-paths.ts so importing them doesn't load
ios-project-service, and put findDevice above getDeviceByIdentifier's
JSDoc instead of between them.
---------
Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
0 commit comments