I don\'t know what causes it.
It does not happen at iPhone 5 and simulators. It have been happened only my original device iPhone 7.
fatal error: err
Delete ~/Library/Developer/Xcode/DerivedData worked for me. Issue is due to cache, since your using pods - you need to remove old references
~/Library/Developer/Xcode/DerivedData