Search code examples
iosswiftxcodecocoapodsswift5

command phasescriptexecution failed with a nonzero exit code ios during archive


I am facing this issue for the last two days and I am not able to resolve it till now. I have tried everything on google and nothing works. This only happens when I create an archive but runs fine on the simulator. Can somebody help me with this?

Specifications : MacBook Pro 2021 with macOS Monterey Apple M1 Pro chip XCode: 13.2.1

enter image description here


Solution

  • I think if you are using some third-party libraries make sure that all is configured perfectly. Add dependencies in header search paths.