ios版本各类报错处理方法

初学Reac Native,发现各种坑,各种异常报错,整理如下报错情况及解决办法以便日后回顾。
如果你觉得帮到你了,请点赞。

1. 当发布状态设置为Release时出现"___gxx_personality_sj0", referenced from

解决方法:
在发布时,去掉Test发布

Edit Scheme

ios版本各类报错处理方法_第1张图片
Paste_Image.png

确认Dead Code Stripping里面Debug=No

ios版本各类报错处理方法_第2张图片
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.

ios版本各类报错处理方法_第3张图片
Paste_Image.png

Xcode->Device里面删除有冲突的APP,一般为之前发到手机上使用统一bundleID的APP有冲突。

ios版本各类报错处理方法_第4张图片
Paste_Image.png
ios版本各类报错处理方法_第5张图片
Paste_Image.png

3. Code signing is required for XXXXX requires a development team error

确认添加了正确的Apple Developer ID

ios版本各类报错处理方法_第6张图片
Paste_Image.png

注意要在Targets中项目本身和Test项目中都设置

Paste_Image.png

如果可以的话万事大吉,不可以的话运行一下

Product->Clean,然后重启XCode

ios版本各类报错处理方法_第7张图片
Paste_Image.png

你可能感兴趣的:(ios版本各类报错处理方法)