您当前的位置: 首页 >  ar

xiangzhihong8

暂无认证

  • 0浏览

    0关注

    1324博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

关于React Native报Cannot initialize a parameter of type ‘NSArray<id<RCTBridgeModule>>错误的解决方案

xiangzhihong8 发布时间:2021-05-11 14:41:47 ,浏览量:0

最近,在运行一个老RN项目的时候,使用Xcode运行的时候报了如下的代码错误:

Cannot initialize a parameter of type 'NSArray *' 
                with an lvalue of type 'NSArray *__strong'
Cannot initialize a parameter of type 'NSArray *' 
                with an lvalue of type 'NSArray *__strong'
Cannot initialize a parameter of type 'NSArray *' 
                with an rvalue of type 'NSArray *'

这是由于升级XCode 12.5之后的问题,在ios/Podfile文件中加入如下的脚本即可。

post_install do 
关注
打赏
1482932726
查看更多评论
立即登录/注册

微信扫码登录

0.0388s