我尝试使用 Xcode 12.4 (12D4e) 构建一个版本并反应本机 0.63.4,并且本地图像未显示,但 url 图像显示。
我找到了很多相关主题和解决方案,但没有任何效果,我被困了 3 天。
-
我的项目的每个图像都有此警告:
[框架] CUICatalog:提供的资产名称无效:“(null)”
-
我的 main.jsbundle 和 asset 文件夹位于同一文件夹中,并在 Xcode -> Build Phases -> Copy Bundle Ressources 中列出
-
RCTUIImageViewAnimated.m 的错误 https://github.com/facebook/react-native/issues/29279?_pjax=%23js-repo-pjax-container#issuecomment-658244428在 ios 14 上应该可以解决,因为我的反应本机版本> 0.62.2(我也检查了文件,一切正常)
-
I tried
但我无法在真实设备、模拟器上正确构建版本或在测试飞行中存档它。调试模式工作正常。我缺少什么?
我前段时间遇到过这个问题,看看this https://github.com/facebook/react-native/issues/29279#issuecomment-657201709.
-
go to node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m
-
find
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
}
- 并替换为
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)