Presenting Retain Cycle

Number:rdar://48124947 Date Originated:15-Feb-2019 05:40 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:12.1.3
Classification:Serious Bug Reproducible:Always
Turns out there's some sort of retain cycle when trying to present a UIAlertController on a UIViewController that is being dismissed.

This is a violation of the presenting on a dismissed controller API, but it still smells like a bug to me that the view controller would be kept around in memory.

Steps to Reproduce:
1. Open the sample app
2. Click on Present Modally?
3. Click on Dismiss
4. Try to click on Present Modally? again

Expected Results:
It does not present and instead the text that was previously "Unknown" changes to "The view controller should not exist!!"

Actual Results:
It *should* present normally and the view controller should have been deallocated.




But it doesn't actually work...

The sample project still shows the bug exists in the Xcode 10.2 beta 3. Followed up with Apple so hopefully it'll be fixed in the next beta.

By aditya.ayyakad at Feb. 25, 2019, 8:40 p.m. (reply...)

Apple Responded!!!

We believe this issue is resolved in the latest iOS 12.2 beta.

Please test with the latest iOS beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate.

iOS beta

By aditya.ayyakad at Feb. 25, 2019, 8:16 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!