Skip to content

Commit b1d5038

Browse files
authored
Fix mutating array during iteration crash (#11379)
1 parent 3abef64 commit b1d5038

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

FirebaseABTesting/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 10.11.0
2+
- [fixed] Fix crash caused by mutating array during iteration. (#11378)
3+
14
# 8.2.0
25
- [fixed] Fixed analyze issue introduced in Xcode 12.5. (#8209)
36

FirebaseABTesting/Sources/FIRExperimentController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
[ABTConditionalUserPropertyController sharedInstanceWithAnalytics:analytics];
9191

9292
// Check if the experiment is in experiments but not payloads.
93-
for (id experiment in experiments) {
93+
for (id experiment in [experiments copy]) {
9494
BOOL doesExperimentNoLongerExist = YES;
9595
for (NSData *payload in payloads) {
9696
ABTExperimentPayload *experimentPayload = ABTDeserializeExperimentPayload(payload);

0 commit comments

Comments
 (0)