Post

Replies

Boosts

Views

Activity

Is it possible to prevent response caching across the app? (Including external libraries)
As part of a security assessment, we discovered that our app is storing sensitive information in the cache. After some research and considering the recommendations, we decide to use .ephemeral configurations for our URLSessions, so far so good. However, taking a look at the content in the cfurl_cache_receiver_data table, we realized that some of those responses are not part of any of our endpoints, meaning that this is probably coming from requests made for third-party libraries that we use and we were able to confirm this by using a tool to inspect network traffic. My understanding is the cache mechanism is attached to a URLSessionConfiguration and, at the same time, this configuration is tied to a URLSession. Since this is not our code and therefore different URLSessions it makes sense that this caches the responses for any request. Please correct me if this is wrong. I am wondering if there is a way to disable the caching across the app (including requests made for third-party libraries?) or if there is a different/better approach to this? I am attaching a screenshot of the cfurl_cache_receiver_data table content. For example: token=[value]. This is not the response of one of our endpoints, but an external one. Thanks in advance! PD: Is there a way to easily map the data in the cache.db with the particular endpoint/request?
1
0
1.3k
Apr ’22
Crash: IndexPath.section.getter + 168
Hello everyone! My app is getting a crash in the tableView(_:trailingSwipeActionsConfigurationForRowAt:) function. Apparently, the app is crashing when trying to get the indexPath.section value. I am attaching the crash log. This is not reproducible for me. I have the hunch that this might be related to some accessibility feature, but I have not been able to corroborate it yet. I am not sure how to solve this issue or how to move forward since I still don't know what is causing the app. Any advice or guidance is really appreciated. Thank you! Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001bd99e0c8 Crashed: com.apple.main-thread 0&#9;libswiftUIKit.dylib&#9;&#9;&#9;&#9;&#9;&#9;0x1bd99e0c8 IndexPath.section.getter + 168 1&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1033697a4 TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 337 (TableDelegate.swift:337) 2&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x103369e58 @objc TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 4316896856 (<compiler-generated>:4316896856) 3&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad80b9cc -[UITableView _trailingSwipeConfigurationAtIndexPath:fromRemoveButton:] + 1892 4&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0935c34 -[UITableViewCellAccessibility _privateAccessibilityCustomActions] + 540 5&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8854 -[NSObject(AXPrivCategory) _retrieveCustomActionsForElement:] + 68 6&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8b0c -[NSObject(AXPrivCategory) _accessibilityCustomActions] + 220 7&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9f990c -[NSObjectAccessibility accessibilityRespondsToUserInteraction] + 424 8&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0952f6c -[UIViewAccessibility accessibilityRespondsToUserInteraction] + 124 9&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f08f3440 -[UILabelAccessibility accessibilityRespondsToUserInteraction] + 120 10 UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0959678 -[UIViewAccessibility _isEligibleForFocusInteraction] + 124 11 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad07f4e4 _UIFocusEnvironmentIsEligibleForFocusInteraction + 64 12 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0acb44 __UIFocusMapRecurseSearchForFocusSystemInEligibleContainer + 148 13 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c30f8 -[_UIFocusMapSnapshot addRegionsInContainer:] + 64 14 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 15 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1adad78cc -[UIView _searchForFocusRegionsInContext:] + 924 16 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c3178 -[_UIFocusMapSnapshot addRegionsInContainer:] + 192 17 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 50 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ada9595c -[_UIAfterCACommitBlock run] + 64 51 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5ff79c _runAfterCACommitDeferredBlocks + 296 52 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5eeb4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 200 53 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad620260 _afterCACommitHandler + 76 54 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2fecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 55 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a5b0 __CFRunLoopDoObservers + 604 56 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2aaf8 __CFRunLoopRun + 960 57 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a200 CFRunLoopRunSpecific + 572 58 GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1c0e25598 GSEventRunModal + 160 59 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f0004 -[UIApplication _run] + 1052 60 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f55d8 UIApplicationMain + 164 61 MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x102d7d654 main + 16 (AppDelegate.swift:16) 62 libdyld.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1aaa09598 start + 4 Full crash log - https://developer.apple.com/forums/content/attachment/4049d9cc-89db-4d2c-a4d9-d71127396799
10
1
4.4k
Mar ’22
Is it possible to prevent response caching across the app? (Including external libraries)
As part of a security assessment, we discovered that our app is storing sensitive information in the cache. After some research and considering the recommendations, we decide to use .ephemeral configurations for our URLSessions, so far so good. However, taking a look at the content in the cfurl_cache_receiver_data table, we realized that some of those responses are not part of any of our endpoints, meaning that this is probably coming from requests made for third-party libraries that we use and we were able to confirm this by using a tool to inspect network traffic. My understanding is the cache mechanism is attached to a URLSessionConfiguration and, at the same time, this configuration is tied to a URLSession. Since this is not our code and therefore different URLSessions it makes sense that this caches the responses for any request. Please correct me if this is wrong. I am wondering if there is a way to disable the caching across the app (including requests made for third-party libraries?) or if there is a different/better approach to this? I am attaching a screenshot of the cfurl_cache_receiver_data table content. For example: token=[value]. This is not the response of one of our endpoints, but an external one. Thanks in advance! PD: Is there a way to easily map the data in the cache.db with the particular endpoint/request?
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’22
Crash: IndexPath.section.getter + 168
Hello everyone! My app is getting a crash in the tableView(_:trailingSwipeActionsConfigurationForRowAt:) function. Apparently, the app is crashing when trying to get the indexPath.section value. I am attaching the crash log. This is not reproducible for me. I have the hunch that this might be related to some accessibility feature, but I have not been able to corroborate it yet. I am not sure how to solve this issue or how to move forward since I still don't know what is causing the app. Any advice or guidance is really appreciated. Thank you! Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001bd99e0c8 Crashed: com.apple.main-thread 0&#9;libswiftUIKit.dylib&#9;&#9;&#9;&#9;&#9;&#9;0x1bd99e0c8 IndexPath.section.getter + 168 1&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1033697a4 TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 337 (TableDelegate.swift:337) 2&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x103369e58 @objc TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 4316896856 (<compiler-generated>:4316896856) 3&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad80b9cc -[UITableView _trailingSwipeConfigurationAtIndexPath:fromRemoveButton:] + 1892 4&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0935c34 -[UITableViewCellAccessibility _privateAccessibilityCustomActions] + 540 5&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8854 -[NSObject(AXPrivCategory) _retrieveCustomActionsForElement:] + 68 6&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8b0c -[NSObject(AXPrivCategory) _accessibilityCustomActions] + 220 7&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9f990c -[NSObjectAccessibility accessibilityRespondsToUserInteraction] + 424 8&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0952f6c -[UIViewAccessibility accessibilityRespondsToUserInteraction] + 124 9&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f08f3440 -[UILabelAccessibility accessibilityRespondsToUserInteraction] + 120 10 UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0959678 -[UIViewAccessibility _isEligibleForFocusInteraction] + 124 11 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad07f4e4 _UIFocusEnvironmentIsEligibleForFocusInteraction + 64 12 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0acb44 __UIFocusMapRecurseSearchForFocusSystemInEligibleContainer + 148 13 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c30f8 -[_UIFocusMapSnapshot addRegionsInContainer:] + 64 14 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 15 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1adad78cc -[UIView _searchForFocusRegionsInContext:] + 924 16 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c3178 -[_UIFocusMapSnapshot addRegionsInContainer:] + 192 17 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 50 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ada9595c -[_UIAfterCACommitBlock run] + 64 51 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5ff79c _runAfterCACommitDeferredBlocks + 296 52 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5eeb4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 200 53 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad620260 _afterCACommitHandler + 76 54 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2fecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 55 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a5b0 __CFRunLoopDoObservers + 604 56 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2aaf8 __CFRunLoopRun + 960 57 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a200 CFRunLoopRunSpecific + 572 58 GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1c0e25598 GSEventRunModal + 160 59 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f0004 -[UIApplication _run] + 1052 60 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f55d8 UIApplicationMain + 164 61 MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x102d7d654 main + 16 (AppDelegate.swift:16) 62 libdyld.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1aaa09598 start + 4 Full crash log - https://developer.apple.com/forums/content/attachment/4049d9cc-89db-4d2c-a4d9-d71127396799
Replies
10
Boosts
1
Views
4.4k
Activity
Mar ’22
How to follow up on a reported bug
Hello there! Is there a way for escalating or following up on a bug report via the Feedback Assistant App? The feedback ID is FB9727299 I reported a bug around 3 months ago. I haven't seen any update beyond: Similar Reports: More Than 10 Resolution: None Any help is really appreciated. Thanks!
Replies
1
Boosts
0
Views
802
Activity
Feb ’22