初学Reac Native,发现各种坑,各种异常报错,整理如下报错情况及解决办法以便日后回顾。
如果你觉得帮到你了,请点赞。
1. 当发布状态设置为Release时出现"___gxx_personality_sj0", referenced from
解决方法:
在发布时,去掉Test发布
Edit Scheme
确认Dead Code Stripping里面Debug=No
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.
Xcode->Device里面删除有冲突的APP,一般为之前发到手机上使用统一bundleID的APP有冲突。
3. Code signing is required for XXXXX requires a development team error
确认添加了正确的Apple Developer ID
注意要在Targets中项目本身和Test项目中都设置
如果可以的话万事大吉,不可以的话运行一下
Product->Clean,然后重启XCode