I am getting Command PhaseScriptExecution failed with a nonzero exit code
error frequently, The below workarounds which I followed but didn't help me.
Workaround1: Keychain Access -> Right-click on login -> Lock & unlock again -> Clean Xcode project ->Make build again
Workaround2: Build Phases -> Targets -> Embedded pods frameworks "Run script only while installing"
Workaround3: Deleting the derived data
Workaround2: Clean project and building again.
Find the below log
Library/Developer/Xcode/DerivedData/CompanyName-
bofekdusvsoagmhinknpcoyjfyoj/Build/Intermediates.noindex/CompanyName.build/Debug-
iphonesimulator/company-iOS.build/Script-2AD2DCB21F0D6514005CEF4D.sh: line 2: 20846
Segmentationfault: 11 ../BuildSupport/swift_lint_check.sh