Command PhaseScriptExecution failed with a nonzero exit code error in Xcode 10.2 while archiving

996 Views Asked by At

My app is working fine in the simulator as well as in Device, but when I try to Archive it, it gives me the below error

/Users/name/Library/Developer/Xcode/DerivedData/project-evflmdkacjdwilgizgoamypzjjxl/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/Script-1D225BD221CA46970001C206.sh: line 29: syntax error: unexpected end of file Command PhaseScriptExecution failed with a nonzero exit code

I have tried the below solutions.

  1. Pod Update (No Success)
  2. Cleared DerivedData (No Success)
  3. Tracked the script location and saw line 29, it's nothing there (Check screenshot) enter image description here

  4. Clean Project Folder and Build (No Success)

  5. Cocoa Pod Update (No Success)
  6. Quit and restart Xcode (No Success)
  7. Keychain -> lock "Login" -> Unlock "Login" (No Success)
  8. Shut down machine and restarted (No Success)

I tried what I found on the web but still, I am not able to resolve it.

0

There are 0 best solutions below