4 ms·
Does anyone know if there is a way to monitor xcode and find out if it's GC or ARC?
by chucknelson 14y ago
Does anyone know if there is a way to monitor xcode and find out if it's GC or ARC?
- msbarnett 14y agoYou can just use otool to dump the Objective-C information out of the MachO executable: otool -o /Applications/Xcode.app/Contents/MacOS/Xcode ..... Contents of (__DATA,__objc_imageinfo) section version 0 flags 0x6 OBJC_IMAGE_SUPPORTS_GC That's for Xcode 4.4. So yes, it's still being built for Garbage Collection.
- binarycrusader 14y agoA recent post on the Apple developer forums indicated that it is still using gc. But it's a very large, old codebase at this point so that's not surprising. I imagine that as they drop support for older platforms and have the time, they'll slowly remove reliance on gc.