Fix FastlaneCore::Helper.xcode_path for non-Mac environments (#11043)
Fix FastlaneCore::Helper.xcode_path for non-Mac environments (#11043)

`FastlaneCore::Helper.xcode_path` finds out if it is inside a test by checking for if `SpecHelper` is defined:
https://github.com/fastlane/fastlane/blob/5019acb53fc2adf050b4227c3e3216e365ba36ec/fastlane_core/lib/fastlane_core/helper.rb#L23-L25
If the module is only loaded after the check is first executed, it internally never realizes it is in a test and return the wrong value on non-Mac environments. Only on subsequent calls does it return the correct value.

Moving the SpecHelper module code before the first call to `FastlaneCore::Helper.xcode_path` fixes the problem.
hjanuschka/fastlane,bolom/fastlane,KrauseFx/fastlane,ashfurrow/fastlane,fastlane/fastlane,keatongreve/fastlane,taquitos/fastlane,luongm/fastlane,kohtenko/fastlane,revile/fastlane,allewun/fastlane,mgrebenets/fastlane,taquitos/fastlane,lacostej/fastlane,farkasseb/fastlane,Econa77/fastlane,marcelofabri/fastlane,hjanuschka/fastlane,bassrock/fastlane,icecrystal23/fastlane,joshdholtz/fastlane,javibm/fastlane,orta/fastlane,adamcohenrose/fastlane,bassrock/fastlane,jaleksynas/fastlane,manuyavuz/fastlane,hjanuschka/fastlane,mbogh/fastlane,bolom/fastlane,manuyavuz/fastlane,ashfurrow/fastlane,daveanderson/fastlane,ExtremeMan/fastlane,brbulic/fastlane,Econa77/fastlane,daveanderson/fastlane,javibm/fastlane,brbulic/fastlane,jaleksynas/fastlane,manuyavuz/fastlane,revile/fastlane,Econa77/fastlane,jaleksynas/fastlane,fastlane/fastlane,bolom/fastlane,ashfurrow/fastlane,bolom/fastlane,allewun/fastlane,luongm/fastlane,keatongreve/fastlane,hjanuschka/fastlane,brbulic/fastlane,javibm/fastlane,joshdholtz/fastlane,mbogh/fastlane,keatongreve/fastlane,nafu/fastlane,KrauseFx/fastlane,mgrebenets/fastlane,luongm/fastlane,manuyavuz/fastlane,lacostej/fastlane,jaleksynas/fastlane,KrauseFx/fastlane,daveanderson/fastlane,javibm/fastlane,javibm/fastlane,cpk1/fastlane,revile/fastlane,adamcohenrose/fastlane,KrauseFx/fastlane,allewun/fastlane,ashfurrow/fastlane,tmtrademarked/fastlane,mbogh/fastlane,farkasseb/fastlane,fastlane/fastlane,kazuhidet/fastlane,nafu/fastlane,kohtenko/fastlane,allewun/fastlane,fastlane/fastlane,joshdholtz/fastlane,bassrock/fastlane,mgrebenets/fastlane,nafu/fastlane,kazuhidet/fastlane,javibm/fastlane,marcelofabri/fastlane,allewun/fastlane,Econa77/fastlane,marcelofabri/fastlane,brbulic/fastlane,adamcohenrose/fastlane,tmtrademarked/fastlane,ExtremeMan/fastlane,jaleksynas/fastlane,farkasseb/fastlane,farkasseb/fastlane,adamcohenrose/fastlane,ashfurrow/fastlane,bolom/fastlane,kazuhidet/fastlane,marcelofabri/fastlane,kazuhidet/fastlane,cpk1/fastlane,icecrystal23/fastlane,javibm/fastlane,luongm/fastlane,ashfurrow/fastlane,mbogh/fastlane,mgrebenets/fastlane,joshdholtz/fastlane,bassrock/fastlane,keatongreve/fastlane,farkasseb/fastlane,cpk1/fastlane,revile/fastlane,tmtrademarked/fastlane,taquitos/fastlane,Econa77/fastlane,manuyavuz/fastlane,daveanderson/fastlane,keatongreve/fastlane,jaleksynas/fastlane,mgrebenets/fastlane,taquitos/fastlane,cpk1/fastlane,brbulic/fastlane,allewun/fastlane,bolom/fastlane,tmtrademarked/fastlane,daveanderson/fastlane,lacostej/fastlane,jaleksynas/fastlane,taquitos/fastlane,adamcohenrose/fastlane,adamcohenrose/fastlane,brbulic/fastlane,bassrock/fastlane,kazuhidet/fastlane,nafu/fastlane,ExtremeMan/fastlane,revile/fastlane,Econa77/fastlane,joshdholtz/fastlane,ashfurrow/fastlane,daveanderson/fastlane,KrauseFx/fastlane,brbulic/fastlane,kazuhidet/fastlane,fastlane/fastlane,joshdholtz/fastlane,icecrystal23/fastlane,cpk1/fastlane,tmtrademarked/fastlane,mbogh/fastlane,cpk1/fastlane,lacostej/fastlane,fastlane/fastlane,nafu/fastlane,hjanuschka/fastlane,farkasseb/fastlane,icecrystal23/fastlane,mgrebenets/fastlane,lacostej/fastlane,mgrebenets/fastlane,joshdholtz/fastlane,daveanderson/fastlane,hjanuschka/fastlane,ExtremeMan/fastlane,taquitos/fastlane,marcelofabri/fastlane,icecrystal23/fastlane,luongm/fastlane,orta/fastlane,mbogh/fastlane,farkasseb/fastlane,manuyavuz/fastlane,icecrystal23/fastlane,KrauseFx/fastlane,luongm/fastlane,marcelofabri/fastlane,manuyavuz/fastlane,ExtremeMan/fastlane,bolom/fastlane,nafu/fastlane,taquitos/fastlane,hjanuschka/fastlane,ExtremeMan/fastlane,lacostej/fastlane,KrauseFx/fastlane,mbogh/fastlane,keatongreve/fastlane,bassrock/fastlane,allewun/fastlane,nafu/fastlane,adamcohenrose/fastlane,tmtrademarked/fastlane,ExtremeMan/fastlane,marcelofabri/fastlane,Econa77/fastlane,revile/fastlane,luongm/fastlane,cpk1/fastlane,keatongreve/fastlane,tmtrademarked/fastlane,revile/fastlane,kazuhidet/fastlane