Commit 61560ff
fix(ios): raise deployment target to 17.0 and stabilize Babel hoisting (#1085)
## Summary
- Bumps the iOS deployment target from 15.1 to 17.0 everywhere (podspec,
tracked app xcodeprojs and Podfile, Expo apps via
`expo-build-properties`) so the target matches the prebuilt executorch
libraries (minos 17.0). Silences the "was built for newer iOS version"
linker warnings that previously ran at the end of every iOS build.
- Re-adds `expo-router` to the workspace root `devDependencies` so Yarn
hoists it next to `babel-preset-expo`. Without this,
`babel-preset-expo`'s `require.resolve('expo-router')` check fails, its
expo-router Babel plugin is never registered,
`process.env.EXPO_ROUTER_APP_ROOT` stays un-inlined, and Metro rejects
`require.context` in `expo-router/_ctx.ios.js`. Reverts the incidental
breakage from #1083.
- Scopes `logFilters` in `.yarnrc.yml` to silence the YN0002 lines for
the root workspace's expo-router peers (and the YN0086 summary).
Warnings from any other workspace still surface. The mechanism mirrors
the existing `@signalwire/docusaurus-theme-llms-txt` filter.
- Updates React Native Audio Api to version 0.12.0
### Why iOS 17 specifically
The executorch prebuilt libraries (`libexecutorch_ios.a`,
`libbackend_xnnpack_ios.a`, etc.) and `ExecutorchLib.xcframework` are
built with `minos=17.0`. Linking them into an app with a lower
deployment target produces a run of linker warnings on every build.
README already documents iOS 17.0 as the minimum supported version, so
this change also brings build configs in line with the docs.
### Remaining warnings after this PR
- **phonemis** — shipped with `minos=26.0`, which is way above the app
target. Out of scope here; the library is being rebuilt by a separate
team member.
- **pthreadpool** (minos 12/14) and **cpuinfo** (LC_VERSION_MIN 11) —
*below* 17.0, so they don't trigger "built for newer" warnings. No
action needed today; worth rebuilding next time those libraries touch
the repo for consistency.
## Test plan
- [ ] `yarn` at repo root completes without YN0002 / YN0086 warnings (PR
#1083's original goal, preserved).
- [ ] For each Expo app
(`apps/{llm,computer-vision,speech,text-embeddings}`): `rm -rf ios &&
yarn ios` successfully prebuilds, installs pods, and builds.
- [ ] In each app's build log, the previous block of "object file was
built for newer iOS version (17.0) than being linked (15.1)" warnings
from executorch libs is gone.
- [ ] `apps/bare-rn`: `pod install && yarn ios` builds; no executorch
version-mismatch linker warnings.
- [ ] Metro bundles successfully for Expo apps using expo-router (`llm`,
`computer-vision`, `text-embeddings`) — the `_ctx.ios.js`
`require.context` error reported during development is resolved by the
hoist fix.
- [ ] `apps/llm` builds on Xcode 26.4 without the `size_t` /
`Constants.h` compile error from `react-native-audio-api`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a46ec71 commit 61560ff
16 files changed
Lines changed: 85 additions & 30 deletions
File tree
- apps
- bare-rn/ios
- bare-rn.xcodeproj
- computer-vision
- llm
- app/voice_chat
- speech
- text-embeddings
- packages/react-native-executorch
- ios/RnExecutorch.xcodeproj
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 72 | + | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| |||
92 | 86 | | |
93 | 87 | | |
94 | 88 | | |
95 | | - | |
| 89 | + | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
| |||
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
| |||
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments