Dispatch_release compiler error while updating deployment target
I was told to update the iOS app deployment target from iOS 5.1.1 to iOS 6.0. I had several variables dispatch_queue_t
in the code with corresponding function calls dispatch_release
. The compiler still hasn't complained that I raised the deployment target.
I read several posts related to this (for example, Does ARC describe send queues? ) That says it is dispatch_release
no longer required starting with iOS 6.0, but ... do I need to replace such a function call with another, or just delete them?
thank
source to share
Basically, you can just delete them. The compiler automatically generates code to release dispatch queues and other GCD objects as Objective-C objects. You may need to change the bit to free send queues if there is a save loop.
Or you can save the dispatch_release
call with the -DOS_OBJECT_USE_OBJC = 0 flag when reading .
source to share