@minggo did you ever get this working?
I’m trying to do the same thing and have had limited success. I’m working with Xcode 6.1.1 and using an altered version (with
xcode-ninja) of your changes to
subprocess.call([python, gyp, '-f', 'xcode-ninja', '--depth', '.',
'atom.gyp', '-Icommon.gypi'] + defines, env=env)
atom.ninja.xcworkspace were generated.
Build and Run doesn’t work but it is possible to attach the debugger to a running instance of Electron (via Debug > Attach to process… ). This is great, but Xcode is only recognising and showing source from the Electron project during debug - even though I’ve created a project for libchromiumcontent and dragged it into the workspace.
What I really need to see is the source rather than the assembly (assuming that’s what it is - I’m not that familiar).