Commit 29caa97
committed
feat: add app icon to WebDriverAgentRunner
Previously the WDA Runner installed as a blank/white icon on iOS home
screens because Xcode's auto-generated XCTRunner host app does not
inherit icons from the test bundle's asset catalog.
This change:
- Adds an Appium-logo AppIcon asset catalog to WebDriverAgentRunner
so actool compiles iOS icon variants into the .xctest bundle.
- Adds Scripts/embed-runner-icon.sh, a scheme post-action that lifts
the compiled icons from PlugIns/<name>.xctest/ into the Runner.app
root, patches the Runner.app Info.plist with CFBundleIcons /
CFBundleIcons~ipad, and re-codesigns the bundle.
- Wires the script in via a <PostActions> entry on the scheme's
BuildAction so it runs after Xcode's CopyPlistFile step (a Run
Script build phase fires too early and gets overwritten).
iOS only; tvOS uses a different layered Brand Assets format and is
intentionally not handled here.1 parent daad857 commit 29caa97
6 files changed
Lines changed: 122 additions & 0 deletions
File tree
- Scripts
- WebDriverAgent.xcodeproj
- WebDriverAgentRunner/Assets.xcassets
- AppIcon.appiconset
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| 829 | + | |
829 | 830 | | |
830 | 831 | | |
831 | 832 | | |
| |||
1368 | 1369 | | |
1369 | 1370 | | |
1370 | 1371 | | |
| 1372 | + | |
1371 | 1373 | | |
1372 | 1374 | | |
1373 | 1375 | | |
| |||
2294 | 2296 | | |
2295 | 2297 | | |
2296 | 2298 | | |
| 2299 | + | |
2297 | 2300 | | |
2298 | 2301 | | |
2299 | 2302 | | |
| |||
3110 | 3113 | | |
3111 | 3114 | | |
3112 | 3115 | | |
| 3116 | + | |
3113 | 3117 | | |
3114 | 3118 | | |
3115 | 3119 | | |
| |||
4346 | 4350 | | |
4347 | 4351 | | |
4348 | 4352 | | |
| 4353 | + | |
4349 | 4354 | | |
4350 | 4355 | | |
4351 | 4356 | | |
| |||
4399 | 4404 | | |
4400 | 4405 | | |
4401 | 4406 | | |
| 4407 | + | |
4402 | 4408 | | |
4403 | 4409 | | |
4404 | 4410 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
8 | 26 | | |
9 | 27 | | |
10 | 28 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments