duheng

Results 6 issues of duheng

xcode11打包后闪退,启动报错;xcode每次升级都会出幺蛾子,习惯就好 ![image](https://user-images.githubusercontent.com/4907067/81490773-bfef7300-92b8-11ea-8018-90147aab3033.png) 报错为 Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type. 这个BUG是Xcode.11引起的, 可以查看这个问题的提交记录,链接为:https://github.com/facebook/react-native/issues/25138 我们只需要找到 RCTModuleMethod.mm 这个文件,大约在93行左右 文件是在node_modules/react-native/React/base/RCTModuleMethod.mm 这个位置, 在Xcode可以直接搜索 RCTModuleMethod. 这个文件, 修改 static BOOL...

大家在使用的过程中如果遇到问题可以在这里反馈

一. 缺少libfishhook.a文件,如下图 ![1543476813562](https://user-images.githubusercontent.com/4907067/49206345-bd62cb80-f3ec-11e8-9e51-6758d4cbd12f.jpg) 解决方案看下图 ![image](https://user-images.githubusercontent.com/4907067/49206430-0450c100-f3ed-11e8-8df0-ebcfdb6243b2.png) ![image](https://user-images.githubusercontent.com/4907067/49206446-0d419280-f3ed-11e8-92f7-ff8d65da9f06.png) 照上两个图操作后重新执行 yarn run ios就可以了 具体的可以看看兔子的文章 https://www.jianshu.com/p/cc0174b4a9c5 二:报错信息为 Print: Entry, ":CFBundleIdentifier", Does Not Exist; 出现这个报错的时候用xcode运行一下,运行结果如下图 ![1543462118956](https://user-images.githubusercontent.com/4907067/49206621-8f31bb80-f3ed-11e8-9379-fdb1298bc302.jpg) 如果跟上图一样的运行结果 请下载 [boost_1_63_0.tar.gz](https://github.com/duheng/Mozi/files/2628098/boost_1_63_0.tar.gz) 将其解压后替换node_modules/react-native/third-party/boost_1_63_0 然后重新执行 yarn run ios

解决方案在这里:https://blog.csdn.net/guokaigdg/article/details/89020178

一:包名和签名的信息与原先手机上的冲突 ![239c1b39-c518-4f2a-88a5-eca19feaed87](https://user-images.githubusercontent.com/4907067/50200996-4d17ec00-0393-11e9-82a4-7e6efe8245ca.png) 解决方案:删除手机上安装的本软件,重新编译

![image](https://user-images.githubusercontent.com/4907067/34320510-d66bfa06-e836-11e7-9520-68f4ff1f616b.png) 以上是升级rn到0.51.0后启动安卓报的错,解决办法是手动删除之前的安装包,重新编译