Fix `gf` and friends for Cocoa projects

h/t @atommclain