初學Reac Native,發現各種坑,各種異常報錯,整理如下報錯情況及解決辦法以便日后回顧。
如果你覺得幫到你了,請點贊。
1. 當發布狀態設置為Release時出現"___gxx_personality_sj0", referenced from
解決方法:
在發布時,去掉Test發布
Edit Scheme
Paste_Image.png
確認Dead Code Stripping里面Debug=No
Paste_Image.png
2. 安裝到手機時出現 App installation failed
This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
Paste_Image.png
Xcode->Device里面刪除有沖突的APP,一般為之前發到手機上使用統一bundleID的APP有沖突。
Paste_Image.png
Paste_Image.png
3. Code signing is required for XXXXX requires a development team error
確認添加了正確的Apple Developer ID
Paste_Image.png
注意要在Targets中項目本身和Test項目中都設置
Paste_Image.png
如果可以的話萬事大吉,不可以的話運行一下
Product->Clean,然后重啟XCode
Paste_Image.png