All Questions
Tagged with automatic-ref-counting xcode
369 questions
0
votes
0
answers
43
views
How to get list of ARC conversion errors
I am dusting off a very old app and trying to get it cleaned up so I can re-submit it to the App Store.
It was written in Objective-C using manual reference counting. I tried using the automatic ARC ...
3
votes
0
answers
276
views
Why does modern Xcode generate projects with UIApplicationMain outside of autorelease pool?
If I remember correctly, back in the days Xcode used to generate the main function something like this (at least for iOS applications):
int main(int argc, char * argv[]) {
@autoreleasepool {
...
1
vote
1
answer
219
views
Xcode 13 strange behavior in LLDB
When using expressions(ex. po) in console the debugger strongly retains and does not release objects. The result is that the objects, that would otherwise deinitialize, leak.
Steps to reproduce the ...
0
votes
2
answers
206
views
I am trying to create a custom UITabBar, but there is a memory leak caused when I present one of the tabBar's view controllers
I am trying to create a custom tabBarController, but it seems like there is a memory leak caused by presenting the different view controllers. I can see the memory usage climb when I toggle between ...
1
vote
0
answers
37
views
When using self in the completion block, does it always have a memory leak in Swift? [duplicate]
I've been working on Swift for about half a year, and now I struggle with understanding when to use the [weak self] to avoid a memory leak. TBH, it was too difficult for me to understand from the ...
0
votes
0
answers
145
views
Objective C Manual Reference Counting in OSX vs iOS targets; Xcode settings
Currently I'm investigating a memory leak issue in some code written in MRC (Manual Reference Counting, non-ARC).
To check Xcode's measurement tool against my code, I intentionally removed "...
1
vote
0
answers
37
views
How did the objective-c object reference count is set to -1?
I was using XCode's zombie profiling problem of message sended to dealloced object . and the profilie log this
you can see that in #49, the reference delta is -1 ,but the RefCt is set from 2 to -1 ...
9
votes
2
answers
1k
views
UIViewController with CFNotificationCenter strong reference won't release
I have a view controller that is never released once its parent view controller is removed from the view hierarchy and released. Every instance of it within the memory graph looks the same in that it ...
0
votes
1
answer
171
views
Clear memory on cycle [duplicate]
I have an array of images and need to merge these images with different blending options. I found, that during this process memory is not released each step of cycle. Even if there are no references ...
0
votes
1
answer
1k
views
IOS Build fails with "ARC Semantic Issue"
Struggling to figure out what the issue is I've been googling for a while now but haven't been able to figure out why the build fails with this error.
Also tried cleaning and rebuilding. Done a pod ...
2
votes
1
answer
2k
views
Deinit method called automatically when its instance is initialised and delegate is set to some view controller
When I initialise the ABCViewController instance to push this controller, like I did it here.
private func showABCController() {
let storyBoard = UIStoryboard (
name: "PaymentView", ...
1
vote
1
answer
342
views
Trying to cast a pointer to a pointer under ARC
I'm getting this compiler error:
Implicit conversion of a non-Objective-C pointer type 'void *
_Nullable' to 'NSObject *__strong *' is disallowed with ARC
when I try to compile this old code ...
0
votes
1
answer
2k
views
Navigation Controller not releasing memory, memory leak?
Ive created a navigation which pushes a view controller that contains an image view and a button which adds the same view controller each time the button is tapped. After each tap the memory grows and ...
0
votes
1
answer
66
views
Print value of a NSString which is set inside a autoreleasepool
I'm trying to NSLog value of a NSString which is references inside a @autoreleasepool, but XCode complains of Format specifies type 'char *' but the argument has type 'NSString *__autoreleasing **'
...
1
vote
1
answer
74
views
How to get rid of this memory leak
Now I'm working with Leaks tool in Xcode and there is one leak in the last line of this chunk of code:
let geocoder = CLGeocoder()
geocoder.geocodeAddressString(location) { (placemarks, error) ...