安装react-native-fast-image软件包后,构建失败

问题描述 投票:0回答:1

我已将包react-native-fast-image添加到我的react项目中,该项目旨在通过更快的方式加快基于优先级加载图像的速度。另外,我手动链接了这里所述的库:https://github.com/DylanVann/react-native-fast-image/blob/master/docs/installation-manual.md

但构建失败.And i get the below error as shown in the screenshot

react-native react-native-android react-native-ios
1个回答
0
投票

根据错误,我认为你没有对原生xCode进行设置。按照以下步骤链接到xCode。

In Xcode:

Add FastImage.xcodeproj to Libraries.

Add libFastImage.a to Link Binary With Libraries under Build Phases.

在进行设置之前不要忘记链接。

1)需要将node_modules-> react-native-fast-image-> ios-> FastImage.xcodeproj拖入Libraries文件夹下的xcode。

enter image description here

2)将libFastImage.a添加到Link Binary with Libraries部分。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.