最近,在运行一个老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