Xcode Archive debug strip errors Xcode Archive debug strip errors xcode xcode

Xcode Archive debug strip errors


Under build settings for the static library target, select NO for 'deployment postprocessing' and 'strip debug symbols during copy'. It is compiled code so it doesn't need symbols stripped.I was experiencing the same error ('usr/bin/strip failed with exit code 1') and this fixed it for me.


In my case I added the following to my library Target build settings and started working fine:

  • Dead Code Stripping: NO

  • Strip Debug Symbols During Copy: NO for all configurations

  • Strip Style: Non-Global Symbols


There are different options to strip (see manpage) and I think you'll want to use the -r option. You can set the type of stripping to perform from within the Xcode project settings. See if you can relate the options in Xcode with the options in the manpage.