Commit 4985f23
fix(build): resolve concurrent-capture errors under Xcode 15.4
Two more latent compile errors surfaced now that Build & Test runs:
- NFCManager.tagReaderSession captured the weak 'self' var inside a
concurrently-executing Task { @mainactor } (lines 134/135). Bind it once with
'guard let self' so the Task captures an immutable reference.
- ContactsManager.fetchMTRXContacts captured the mutable 'contacts' var inside a
Task { @mainactor }. Snapshot it into a 'let' before the Task and return that.
Both are 'reference to captured var ... in concurrently-executing code' errors
under the CI toolchain (Swift 5.10); behavior is unchanged.
Co-authored-by: Dardan <ItsDardanRexhepi@users.noreply.github.com>1 parent 73ee916 commit 4985f23
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | | - | |
121 | | - | |
| 121 | + | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
0 commit comments