Retain Cycle due to strong reference to PresentingViewController
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- objective-c
- Domain
- authentication, mobile-dev
Research direction
Start by reviewing PR #919 and the AppAuth initialization path that receives the presentingViewController. Compare the proposed ownership change with the reported singleton lifecycle, then verify that the presenting controller can be released without a retain cycle; done means the regression is covered and the existing SDK behavior remains intact.
Written by the indexing model from the issue text.
Description
Describe the bug
When initialize AppAuth in singleton and then pass the presentingViewController, it's resulting in retain cycle.
So we have created this PR, which based on our fork that we are using for almost a year or more with no noticeable issue:
https://github.com/openid/AppAuth-iOS/pull/919
- Dominant language
- Objective-C
- Stars
- 2k
- Forks
- 868
- Avg merge
- 9d 20h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openid/AppAuth-iOS
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 60/100
openid/AppAuth-iOS#908 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
openid/AppAuth-iOS#962 ·
-
enhancement triage
Difficulty 4/5 3-5 days Newbie friendliness 38/100
openid/AppAuth-iOS#953 ·
-
enhancement triage
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openid/AppAuth-iOS#948 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
openid/AppAuth-iOS#932 · 1 comment ·
All issues in openid/AppAuth-iOS
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MaikuB/flutter_appauth#683 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
flutter-webrtc/flutter-webrtc#2216 ·
Maintainers usually reply within 1 day
-
Xcode 27 UpdateOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
hackiftekhar/IQKeyboardManager#2184 ·
-
RemoteConfigProperty stays stale when activation removes a remote keyPossibly taken @paulb777 claimed this 1 day ago. Openapi: remoteconfig
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/firebase-ios-sdk#16816 · 1 comment ·
Maintainers usually reply within 1 day