An unknown error in Xcode appears when achieving the project.
The last thing I do was installing this library using pods: https://github.com/xornorik/SVPinView
When I uninstall this lib everything works fine.
I tried to remove DerivedData and restarting Xcode but the problem still exists.