NSPersistentCloudKitContainer stops syncing on Simulator after Wi-Fi off then on
Originator: | indiekiduk | ||
Number: | rdar://FB8229879 | Date Originated: | 31/7/2020 |
Status: | Closed | Resolved: | Yes |
Product: | Xcode | Product Version: | 12.0 beta 3 (12A8169g) |
Classification: | Bug | Reproducible: | Always |
I noticed that NSPersistentCloudKitContainer stops syncing when running an app on the Simulator and Wi-Fi is turned off and on. On a development machine with Wi-Fi as its only network connection, debug an app that uses NSPersistentCloudKitContainer and perform a context save and test that is working. Then turn the Wi-Fi off and perform another context save. Notice many lines of debug output in the console including 12 instances of "The Internet connection appears to be offline." Now turn the Wi-Fi back on and perform another context save. Syncing never happens again. Even suspending the app with the home button and resuming it again doesn't restart a sync. I believe that sync should survive loss and regaining the network connection so thought I would report this. I have attached a xcrun simctl diagnose when in the broken state.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
indiekiduk
Appears fixed to me thanks. Tested on Xcode Version 12.0 (12A7209) running Simulator 12.0 (940.16) iPhone SE
Apple
Please verify this issue with the iOS 14 GM and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app
Apple
Resolution: Potential fix identified - In iOS 14