Commit 8ad112c
committed
fix(target): treat dependencies and buildPhases as optional keys
Xcode 16.2+ omits the 'dependencies' key from project.pbxproj when a
target has no dependencies (instead of writing 'dependencies = ();').
This causes parseTarget() to fail with a KeyNotFoundError.
Apply the same IsKeyNotFoundError guard already used for 'productType'
and 'productReference'. Also guard 'buildPhases' for forward compat.
Fixes #3301 parent 740af34 commit 8ad112c
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| |||
0 commit comments