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
I used the following steps to get rid of the error:
Delete ~/Library/Developer/Xcode/DerivedData
worked for me.
Issue is due to cache, since your using pods - you need to remove old references
I got this error when i was archiving my app with xcode - while running on sim and physical device worked -, but had my physical device still selected as a scheme. Solution worked for me: clean build folder, and select 'Generic IOS Device' as the scheme.
I got this error when I hardcoded a massive array into a .h file. Worked fine on simulator, threw this error on device.
Changed the array to be empty and it compiled just fine.
This has been driving me nuts and I still can not pinpoint the reason for the crash. But a few of these steps or a combination of these seems to remedy it in the meanwhile.
pod install
/ pod deintegrate
.npm install
if you are working on a react native app after deleting node_modules
~/Library/Developer/Xcode/DerivedData
Delete ~/Library/Developer/Xcode/DerivedData
worked for me.