Use passed target node to build shell scripts for Xcode steps in build-with-buck instead of referencing targetToBuildWithBuck
Use passed target node to build shell scripts for Xcode steps in build-with-buck instead of referencing targetToBuildWithBuck

Summary:Currently we pass targetToBuildWithBuck to all functions that create shell scripts for --build-with-buck mode.
So instead of referencing ivar, we should reference passed target node. This will allow us to build shell scripts for other nodes as well if necessary.

Test Plan: CI

Reviewed By: Coneko

fb-gh-sync-id: 743a835
shipit-source-id: 743a835

darkforestzero/buck,daedric/buck,OkBuilds/buck,clonetwin26/buck,illicitonion/buck,OkBuilds/buck,raviagarwal7/buck,zpao/buck,ilya-klyuchnikov/buck,ilya-klyuchnikov/buck,shybovycha/buck,romanoid/buck,SeleniumHQ/buck,SeleniumHQ/buck,justinmuller/buck,OkBuilds/buck,Addepar/buck,clonetwin26/buck,zhan-xiong/buck,OkBuilds/buck,daedric/buck,k21/buck,shybovycha/buck,rmaz/buck,ilya-klyuchnikov/buck,raviagarwal7/buck,marcinkwiatkowski/buck,clonetwin26/buck,brettwooldridge/buck,davido/buck,justinmuller/buck,grumpyjames/buck,darkforestzero/buck,daedric/buck,nguyentruongtho/buck,SeleniumHQ/buck,dsyang/buck,LegNeato/buck,dsyang/buck,zpao/buck,shybovycha/buck,zhan-xiong/buck,JoelMarcey/buck,justinmuller/buck,shs96c/buck,darkforestzero/buck,robbertvanginkel/buck,daedric/buck,Addepar/buck,davido/buck,Dominator008/buck,kageiit/buck,raviagarwal7/buck,grumpyjames/buck,nguyentruongtho/buck,dsyang/buck,marcinkwiatkowski/buck,shybovycha/buck,shybovycha/buck,JoelMarcey/buck,k21/buck,darkforestzero/buck,ilya-klyuchnikov/buck,grumpyjames/buck,brettwooldridge/buck,vschs007/buck,OkBuilds/buck,SeleniumHQ/buck,darkforestzero/buck,clonetwin26/buck,sdwilsh/buck,SeleniumHQ/buck,Addepar/buck,JoelMarcey/buck,robbertvanginkel/buck,darkforestzero/buck,LegNeato/buck,dsyang/buck,LegNeato/buck,JoelMarcey/buck,shs96c/buck,LegNeato/buck,marcinkwiatkowski/buck,darkforestzero/buck,rmaz/buck,zhan-xiong/buck,OkBuilds/buck,janicduplessis/buck,k21/buck,dsyang/buck,shs96c/buck,daedric/buck,zpao/buck,rmaz/buck,bocon13/buck,clonetwin26/buck,k21/buck,daedric/buck,bocon13/buck,LegNeato/buck,marcinkwiatkowski/buck,Addepar/buck,zhan-xiong/buck,bocon13/buck,bocon13/buck,robbertvanginkel/buck,davido/buck,raviagarwal7/buck,rmaz/buck,shybovycha/buck,justinmuller/buck,zhan-xiong/buck,bocon13/buck,facebook/buck,shs96c/buck,daedric/buck,rmaz/buck,dsyang/buck,sdwilsh/buck,illicitonion/buck,rmaz/buck,bocon13/buck,LegNeato/buck,facebook/buck,nguyentruongtho/buck,brettwooldridge/buck,shs96c/buck,zhan-xiong/buck,dsyang/buck,zhan-xiong/buck,shybovycha/buck,clonetwin26/buck,illicitonion/buck,janicduplessis/buck,ilya-klyuchnikov/buck,robbertvanginkel/buck,shybovycha/buck,davido/buck,k21/buck,OkBuilds/buck,JoelMarcey/buck,sdwilsh/buck,bocon13/buck,robbertvanginkel/buck,davido/buck,zhan-xiong/buck,Addepar/buck,ilya-klyuchnikov/buck,vschs007/buck,vschs007/buck,romanoid/buck,Dominator008/buck,romanoid/buck,facebook/buck,vschs007/buck,vschs007/buck,Dominator008/buck,Dominator008/buck,vschs007/buck,Addepar/buck,raviagarwal7/buck,sdwilsh/buck,JoelMarcey/buck,Dominator008/buck,sdwilsh/buck,Addepar/buck,justinmuller/buck,shs96c/buck,kageiit/buck,rmaz/buck,janicduplessis/buck,JoelMarcey/buck,clonetwin26/buck,dsyang/buck,LegNeato/buck,rmaz/buck,romanoid/buck,sdwilsh/buck,shs96c/buck,davido/buck,brettwooldridge/buck,dsyang/buck,darkforestzero/buck,clonetwin26/buck,facebook/buck,ilya-klyuchnikov/buck,romanoid/buck,raviagarwal7/buck,grumpyjames/buck,shybovycha/buck,SeleniumHQ/buck,clonetwin26/buck,grumpyjames/buck,marcinkwiatkowski/buck,raviagarwal7/buck,darkforestzero/buck,marcinkwiatkowski/buck,kageiit/buck,sdwilsh/buck,illicitonion/buck,grumpyjames/buck,davido/buck,dsyang/buck,brettwooldridge/buck,vschs007/buck,janicduplessis/buck,illicitonion/buck,romanoid/buck,grumpyjames/buck,sdwilsh/buck,k21/buck,bocon13/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,raviagarwal7/buck,JoelMarcey/buck,OkBuilds/buck,illicitonion/buck,robbertvanginkel/buck,janicduplessis/buck,shybovycha/buck,sdwilsh/buck,k21/buck,darkforestzero/buck,rmaz/buck,zhan-xiong/buck,rmaz/buck,Addepar/buck,facebook/buck,zpao/buck,brettwooldridge/buck,zhan-xiong/buck,raviagarwal7/buck,vschs007/buck,illicitonion/buck,davido/buck,Dominator008/buck,grumpyjames/buck,OkBuilds/buck,zpao/buck,k21/buck,JoelMarcey/buck,romanoid/buck,sdwilsh/buck,shs96c/buck,clonetwin26/buck,janicduplessis/buck,sdwilsh/buck,justinmuller/buck,justinmuller/buck,romanoid/buck,justinmuller/buck,romanoid/buck,janicduplessis/buck,Addepar/buck,Dominator008/buck,janicduplessis/buck,illicitonion/buck,illicitonion/buck,shs96c/buck,k21/buck,LegNeato/buck,shs96c/buck,nguyentruongtho/buck,janicduplessis/buck,JoelMarcey/buck,illicitonion/buck,darkforestzero/buck,zhan-xiong/buck,illicitonion/buck,grumpyjames/buck,k21/buck,romanoid/buck,SeleniumHQ/buck,kageiit/buck,k21/buck,robbertvanginkel/buck,brettwooldridge/buck,daedric/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,shybovycha/buck,grumpyjames/buck,davido/buck,Dominator008/buck,brettwooldridge/buck,brettwooldridge/buck,janicduplessis/buck,kageiit/buck,JoelMarcey/buck,bocon13/buck,LegNeato/buck,ilya-klyuchnikov/buck,vschs007/buck,Addepar/buck,brettwooldridge/buck,marcinkwiatkowski/buck,davido/buck,romanoid/buck,darkforestzero/buck,marcinkwiatkowski/buck,bocon13/buck,vschs007/buck,k21/buck,clonetwin26/buck,nguyentruongtho/buck,nguyentruongtho/buck,justinmuller/buck,daedric/buck,OkBuilds/buck,Addepar/buck,robbertvanginkel/buck,illicitonion/buck,LegNeato/buck,justinmuller/buck,dsyang/buck,raviagarwal7/buck,robbertvanginkel/buck,rmaz/buck,davido/buck,bocon13/buck,romanoid/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,facebook/buck,Dominator008/buck,grumpyjames/buck,SeleniumHQ/buck,brettwooldridge/buck,SeleniumHQ/buck,raviagarwal7/buck,zhan-xiong/buck,darkforestzero/buck,zhan-xiong/buck,dsyang/buck,SeleniumHQ/buck,LegNeato/buck,JoelMarcey/buck,bocon13/buck,clonetwin26/buck,dsyang/buck,davido/buck,shs96c/buck,marcinkwiatkowski/buck,OkBuilds/buck,vschs007/buck,shybovycha/buck,brettwooldridge/buck,justinmuller/buck,marcinkwiatkowski/buck,k21/buck,justinmuller/buck,Addepar/buck,zpao/buck,robbertvanginkel/buck,zpao/buck,kageiit/buck,OkBuilds/buck,janicduplessis/buck,vschs007/buck,daedric/buck,daedric/buck,sdwilsh/buck,raviagarwal7/buck,ilya-klyuchnikov/buck,marcinkwiatkowski/buck,nguyentruongtho/buck,robbertvanginkel/buck,robbertvanginkel/buck,justinmuller/buck,illicitonion/buck,OkBuilds/buck,shybovycha/buck,davido/buck,Dominator008/buck,shs96c/buck,ilya-klyuchnikov/buck,grumpyjames/buck,JoelMarcey/buck,vschs007/buck,rmaz/buck,Dominator008/buck,romanoid/buck,brettwooldridge/buck,raviagarwal7/buck,daedric/buck,shs96c/buck,sdwilsh/buck,SeleniumHQ/buck,LegNeato/buck,kageiit/buck,Addepar/buck,facebook/buck,Dominator008/buck,LegNeato/buck,janicduplessis/buck,rmaz/buck,clonetwin26/buck,ilya-klyuchnikov/buck,daedric/buck