Skip to content

Commit 905dbed

Browse files
authored
Merge pull request #154 from contentstack/fix/DX-10148-nslog-format-string-crash
Fix ContentstackLogger crash and enhance async/await cache handling
2 parents 7ac37d6 + 3baf7a9 commit 905dbed

17 files changed

Lines changed: 436 additions & 514 deletions

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# CHANGELOG
22

3+
## v2.5.1
4+
5+
### Date: 17-Aug-2026
6+
7+
### Bug Fixes
8+
9+
- Fixed a crash in `ContentstackLogger` caused by passing the log message to `NSLog` as the format string. Affects the default logger configuration (`logType = .nsLog`, `logLevel = .error`).
10+
- `CachePolicy.cacheThenNetwork` no longer crashes the `async`/`await` APIs; it is served as `CachePolicy.cacheElseNetwork`. The completion-handler APIs are unchanged.
11+
- `CachePolicy.networkElseCache` set per request now falls back to the cache on transport errors.
12+
- A response with neither data nor an error no longer leaves an `async` call suspended indefinitely.
13+
314
## v2.5.0
415

516
### Date: 27-Jul-2026

ContentstackSwift iOS.xctestplan

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "5614AFE7-8607-4A8A-A359-3CC22B4E26AF",
5+
"name" : "Test Scheme Action",
6+
"options" : {
7+
"targetForVariableExpansion" : {
8+
"containerPath" : "container:ContentstackSwift.xcodeproj",
9+
"identifier" : "0F4A75CA241BAC4300E3A024",
10+
"name" : "ContentstackSwift iOS"
11+
}
12+
}
13+
}
14+
],
15+
"defaultOptions" : {
16+
"codeCoverage" : false,
17+
"performanceAntipatternCheckerEnabled" : true
18+
},
19+
"testTargets" : [
20+
{
21+
"target" : {
22+
"containerPath" : "container:ContentstackSwift.xcodeproj",
23+
"identifier" : "0F4A75F2241BAE6C00E3A024",
24+
"name" : "ContentstackSwift macOS Tests"
25+
}
26+
},
27+
{
28+
"target" : {
29+
"containerPath" : "container:ContentstackSwift.xcodeproj",
30+
"identifier" : "0F4A75D2241BAC4300E3A024",
31+
"name" : "ContentstackSwift iOS Tests"
32+
}
33+
},
34+
{
35+
"enabled" : false,
36+
"target" : {
37+
"containerPath" : "container:ContentstackSwift.xcodeproj",
38+
"identifier" : "0F4A760E241BAFE000E3A024",
39+
"name" : "ContentstackSwift tvOS Tests"
40+
}
41+
}
42+
],
43+
"version" : 1
44+
}

ContentstackSwift.xcodeproj/xcshareddata/xcschemes/Contentstack iOS Tests.xcscheme

Lines changed: 0 additions & 59 deletions
This file was deleted.

ContentstackSwift.xcodeproj/xcshareddata/xcschemes/Contentstack iOS.xcscheme

Lines changed: 0 additions & 67 deletions
This file was deleted.

ContentstackSwift.xcworkspace/xcshareddata/xcschemes/Contentstack iOS.xcscheme

Lines changed: 0 additions & 78 deletions
This file was deleted.

ContentstackSwift.xcworkspace/xcshareddata/xcschemes/Contentstack macOS Tests.xcscheme

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)