If you’re having custom Run Script Phases in Build Phases and you don’t want (or can’t) remove them, then try to check checkbox “Run script only when installing”.

If you’re having custom Run Script Phases in Build Phases and you don’t want (or can’t) remove them, then try to check checkbox “Run script only when installing”.
