No component found for view with name “ARTShape”

在react native中如果遇到你要使用ART,并且遇到报错No component found for view with name “ARTShape”


No component found for view with name “ARTShape”_第1张图片
4.png

1.首先你要找到ART的项目在node_module/react-native中


No component found for view with name “ARTShape”_第2张图片
1.png

2.将ART.xcodeproj文件拖进ios项目中的Libraries文件中


No component found for view with name “ARTShape”_第3张图片
2.png

3.在项目Build Phase中增加libART.a
No component found for view with name “ARTShape”_第4张图片
3.png

4.在Xcode中CMD+B,然后重新运行项目


No component found for view with name “ARTShape”_第5张图片
5.png

5.重新react-native run-ios吧!

你可能感兴趣的:(No component found for view with name “ARTShape”)