Skip to main content

All 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 ...
Duncan C's user avatar
  • 131k
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 { ...
Aleksandr Medvedev's user avatar
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 ...
Hovak Davtyan's user avatar
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 ...
helloworld12345's user avatar
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 ...
Yuuu's user avatar
  • 879
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 "...
s4mt6's user avatar
  • 153
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 ...
ximmyxiao's user avatar
  • 2,801
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 ...
user avatar
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 ...
Artem's user avatar
  • 397
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 ...
rey123's user avatar
  • 287
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", ...
Himan Dhawan's user avatar
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 ...
Jeff's user avatar
  • 2,699
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 ...
TheRedCamaro3.0 3.0's user avatar
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 **' ...
Novice User's user avatar
  • 3,814
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) ...
Lex Debash's user avatar

15 30 50 per page
1
2 3 4 5
25