[scan] Fix crash when running scan on macOS projects (#6864)
[scan] Fix crash when running scan on macOS projects (#6864)

scan would crash if the --device option is not specified. This regression was introduced in #6637, sorry. It would also crash for single scheme projects when no --device option is specified.
iMokhles/fastlane,milch/fastlane,rimarsh/fastlane,tommeier/fastlane,milch/fastlane,kndl/fastlane,hjanuschka/fastlane,danielbowden/fastlane,Fanagame/fastlane,tmtrademarked/fastlane,fabiomassimo/fastlane,daveanderson/fastlane,jaleksynas/fastlane,SiarheiFedartsou/fastlane,mbogh/fastlane,enozero/fastlane,cpunion/fastlane,marcelofabri/fastlane,sinoru/fastlane,milch/fastlane,danielbowden/fastlane,iMokhles/fastlane,NicholasFFox/fastlane,vronin/fastlane,iMokhles/fastlane,mgrebenets/fastlane,adamcohenrose/fastlane,ffittschen/fastlane,hjanuschka/fastlane,fastlane/fastlane,kazuhidet/fastlane,brbulic/fastlane,iCell/fastlane,danielbowden/fastlane,matthewellis/fastlane,cpunion/fastlane,bassrock/fastlane,KrauseFx/fastlane,KrauseFx/fastlane,mgrebenets/fastlane,ashfurrow/fastlane,daveanderson/fastlane,farkasseb/fastlane,KrauseFx/fastlane,NicholasFFox/fastlane,matthewellis/fastlane,adamcohenrose/fastlane,javibm/fastlane,sinoru/fastlane,iMokhles/fastlane,powtac/fastlane,bolom/fastlane,NicholasFFox/fastlane,allewun/fastlane,ashfurrow/fastlane,danielbowden/fastlane,Econa77/fastlane,kazuhidet/fastlane,kndl/fastlane,nafu/fastlane,Fanagame/fastlane,luongm/fastlane,tmtrademarked/fastlane,tommeier/fastlane,luongm/fastlane,manuyavuz/fastlane,icecrystal23/fastlane,SiarheiFedartsou/fastlane,bolom/fastlane,SiarheiFedartsou/fastlane,fastlane/fastlane,fastlane/fastlane,keatongreve/fastlane,cpk1/fastlane,lyndsey-ferguson/fastlane,cpk1/fastlane,enozero/fastlane,iCell/fastlane,danielbowden/fastlane,fulldecent/fastlane,allewun/fastlane,kndl/fastlane,lacostej/fastlane,allewun/fastlane,fulldecent/fastlane,hjanuschka/fastlane,mgrebenets/fastlane,rimarsh/fastlane,Sajjon/fastlane,kazuhidet/fastlane,SemenovAlexander/fastlane,Fanagame/fastlane,Econa77/fastlane,cpunion/fastlane,enozero/fastlane,jaleksynas/fastlane,iCell/fastlane,tommeier/fastlane,powtac/fastlane,taquitos/fastlane,SiarheiFedartsou/fastlane,marcelofabri/fastlane,hjanuschka/fastlane,icecrystal23/fastlane,Sajjon/fastlane,lyndsey-ferguson/fastlane,manuyavuz/fastlane,jaleksynas/fastlane,powtac/fastlane,milch/fastlane,rimarsh/fastlane,SemenovAlexander/fastlane,RishabhTayal/fastlane,ffittschen/fastlane,Econa77/fastlane,adellibovi/fastlane,nafu/fastlane,ffittschen/fastlane,mathiasAichinger/fastlane,olegoid/fastlane,manuyavuz/fastlane,matthewellis/fastlane,luongm/fastlane,bassrock/fastlane,iCell/fastlane,iCell/fastlane,keatongreve/fastlane,RishabhTayal/fastlane,matthewellis/fastlane,powtac/fastlane,mathiasAichinger/fastlane,marcelofabri/fastlane,icecrystal23/fastlane,enozero/fastlane,kndl/fastlane,sinoru/fastlane,javibm/fastlane,adellibovi/fastlane,brbulic/fastlane,marcelofabri/fastlane,olegoid/fastlane,brbulic/fastlane,mbogh/fastlane,RishabhTayal/fastlane,dral3x/fastlane,NicholasFFox/fastlane,soxjke/fastlane,Fanagame/fastlane,fabiomassimo/fastlane,SemenovAlexander/fastlane,olegoid/fastlane,adamcohenrose/fastlane,adellibovi/fastlane,ExtremeMan/fastlane,lyndsey-ferguson/fastlane,SemenovAlexander/fastlane,ExtremeMan/fastlane,rimarsh/fastlane,keatongreve/fastlane,Sajjon/fastlane,Econa77/fastlane,fastlane/fastlane,ashfurrow/fastlane,NicholasFFox/fastlane,hjanuschka/fastlane,cpunion/fastlane,mbogh/fastlane,vronin/fastlane,RishabhTayal/fastlane,KrauseFx/fastlane,danielbowden/fastlane,cpunion/fastlane,rimarsh/fastlane,Econa77/fastlane,brbulic/fastlane,sinoru/fastlane,allewun/fastlane,farkasseb/fastlane,dral3x/fastlane,javibm/fastlane,fulldecent/fastlane,SiarheiFedartsou/fastlane,joshdholtz/fastlane,orta/fastlane,lacostej/fastlane,revile/fastlane,kndl/fastlane,kohtenko/fastlane,Sajjon/fastlane,thasegaw/fastlane,adellibovi/fastlane,revile/fastlane,bolom/fastlane,futuretap/fastlane,lyndsey-ferguson/fastlane,thasegaw/fastlane,soxjke/fastlane,cpk1/fastlane,javibm/fastlane,farkasseb/fastlane,fabiomassimo/fastlane,KrauseFx/fastlane,fastlane/fastlane,lacostej/fastlane,ExtremeMan/fastlane,bassrock/fastlane,farkasseb/fastlane,sinoru/fastlane,nafu/fastlane,joshdholtz/fastlane,soxjke/fastlane,fabiomassimo/fastlane,daveanderson/fastlane,SemenovAlexander/fastlane,milch/fastlane,Econa77/fastlane,powtac/fastlane,brbulic/fastlane,jaleksynas/fastlane,taquitos/fastlane,orta/fastlane,enozero/fastlane,revile/fastlane,vronin/fastlane,icecrystal23/fastlane,ExtremeMan/fastlane,ffittschen/fastlane,bolom/fastlane,mbogh/fastlane,Fanagame/fastlane,dral3x/fastlane,ashfurrow/fastlane,matthewellis/fastlane,adamcohenrose/fastlane,taquitos/fastlane,kndl/fastlane,mathiasAichinger/fastlane,mbogh/fastlane,kazuhidet/fastlane,vronin/fastlane,nafu/fastlane,tommeier/fastlane,cpk1/fastlane,taquitos/fastlane,powtac/fastlane,enozero/fastlane,bassrock/fastlane,enozero/fastlane,keatongreve/fastlane,tmtrademarked/fastlane,lacostej/fastlane,ExtremeMan/fastlane,NicholasFFox/fastlane,revile/fastlane,RishabhTayal/fastlane,farkasseb/fastlane,olegoid/fastlane,SiarheiFedartsou/fastlane,vronin/fastlane,adellibovi/fastlane,daveanderson/fastlane,revile/fastlane,mbogh/fastlane,danielbowden/fastlane,nafu/fastlane,taquitos/fastlane,daveanderson/fastlane,kazuhidet/fastlane,ashfurrow/fastlane,mbogh/fastlane,daveanderson/fastlane,fabiomassimo/fastlane,tommeier/fastlane,mgrebenets/fastlane,nafu/fastlane,sinoru/fastlane,keatongreve/fastlane,tmtrademarked/fastlane,dral3x/fastlane,futuretap/fastlane,rimarsh/fastlane,lyndsey-ferguson/fastlane,adamcohenrose/fastlane,ashfurrow/fastlane,mathiasAichinger/fastlane,icecrystal23/fastlane,hjanuschka/fastlane,jaleksynas/fastlane,hjanuschka/fastlane,cpk1/fastlane,manuyavuz/fastlane,soxjke/fastlane,adellibovi/fastlane,tmtrademarked/fastlane,keatongreve/fastlane,joshdholtz/fastlane,mathiasAichinger/fastlane,cpk1/fastlane,Sajjon/fastlane,luongm/fastlane,thasegaw/fastlane,iMokhles/fastlane,tommeier/fastlane,fulldecent/fastlane,ffittschen/fastlane,luongm/fastlane,fulldecent/fastlane,bolom/fastlane,tommeier/fastlane,rimarsh/fastlane,iMokhles/fastlane,tmtrademarked/fastlane,luongm/fastlane,joshdholtz/fastlane,taquitos/fastlane,cpunion/fastlane,allewun/fastlane,fastlane/fastlane,luongm/fastlane,adamcohenrose/fastlane,futuretap/fastlane,keatongreve/fastlane,mathiasAichinger/fastlane,soxjke/fastlane,olegoid/fastlane,brbulic/fastlane,joshdholtz/fastlane,powtac/fastlane,SemenovAlexander/fastlane,marcelofabri/fastlane,vronin/fastlane,dral3x/fastlane,ffittschen/fastlane,kndl/fastlane,KrauseFx/fastlane,kohtenko/fastlane,RishabhTayal/fastlane,mathiasAichinger/fastlane,lacostej/fastlane,futuretap/fastlane,ashfurrow/fastlane,iCell/fastlane,joshdholtz/fastlane,allewun/fastlane,manuyavuz/fastlane,taquitos/fastlane,fulldecent/fastlane,milch/fastlane,manuyavuz/fastlane,farkasseb/fastlane,futuretap/fastlane,joshdholtz/fastlane,iMokhles/fastlane,tmtrademarked/fastlane,dral3x/fastlane,Fanagame/fastlane,ExtremeMan/fastlane,ffittschen/fastlane,kazuhidet/fastlane,fulldecent/fastlane,bolom/fastlane,fabiomassimo/fastlane,adamcohenrose/fastlane,daveanderson/fastlane,Econa77/fastlane,thasegaw/fastlane,mgrebenets/fastlane,olegoid/fastlane,thasegaw/fastlane,KrauseFx/fastlane,NicholasFFox/fastlane,icecrystal23/fastlane,allewun/fastlane,sinoru/fastlane,marcelofabri/fastlane,bolom/fastlane,jaleksynas/fastlane,lyndsey-ferguson/fastlane,thasegaw/fastlane,manuyavuz/fastlane,soxjke/fastlane,jaleksynas/fastlane,Sajjon/fastlane,mgrebenets/fastlane,olegoid/fastlane,milch/fastlane,soxjke/fastlane,nafu/fastlane,javibm/fastlane,lacostej/fastlane,fabiomassimo/fastlane,iCell/fastlane,SemenovAlexander/fastlane,dral3x/fastlane,javibm/fastlane,farkasseb/fastlane,RishabhTayal/fastlane,kazuhidet/fastlane,cpk1/fastlane,futuretap/fastlane,marcelofabri/fastlane,bassrock/fastlane,revile/fastlane,ExtremeMan/fastlane,futuretap/fastlane,vronin/fastlane,brbulic/fastlane,bassrock/fastlane,adellibovi/fastlane,javibm/fastlane,matthewellis/fastlane,thasegaw/fastlane,Fanagame/fastlane,revile/fastlane,matthewellis/fastlane,mgrebenets/fastlane,lyndsey-ferguson/fastlane,SiarheiFedartsou/fastlane,cpunion/fastlane,Sajjon/fastlane