EAS IOS Build fails after upgrade from sdk 48 to 49 due to .xcode.env empty line

I am using bare workflow.
I am using eas-cli 4.0.1

I updated from sdk 48 to 49 , in the process i deleted IOS folder and used expo prebuild ios for a clean version than readed my native resouces. Afte this the eas build fails with a strange error during run fastlane.

from xcode logs the build stops after thjis error

/bin/sh -c /Users/expo/Library/Developer/Xcode/DerivedData/emenative-bwcbjvgntoxftxglebgmudyexjnf/Build/Intermediates.noindex/ArchiveIntermediates/emenative/IntermediateBuildFilesPath/emenative.build/Release-iphoneos/emenative.build/Script-449DDFE8EB43A5371D24A7FB.sh
/Users/expo/workingdir/build/ios/Pods/…/.xcode.env: line 5:
: command not found
Command PhaseScriptExecution failed with a nonzero exit code

The same “command not found” happened in sdk48 build logs as well but it didnt stop the build.

In any case in .xcode.env line 5 is empty. After deleting the emty line the build is successfull. Bellow links to the unsuccessful and successful builds (only change was deleteing the empty line).