在iOS上使用react-native-mapbox-gl

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

我尝试在xcode上运行时收到此错误消息:

ld:找不到-lRCTMapboxGL的库

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

当我运行run-ios时,我得到了这样的一般性错误:

命令失败:/ usr / libexec / PlistBuddy -c Print:CFBundleIdentifier build / Build / Products / Debug-iphonesimulator / InterfaseCity.app / Info.plist打印:条目,“:CFBundleIdentifier”,不存在

我尝试使用Pod进行安装,并且还手动https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/install.md

当我搜索node_module / @ mapbox文件夹时,在文件上没有看到类似于RCTMapboxGL的内容。

有什么建议吗?

react-native mapbox react-native-ios mapbox-gl
1个回答
0
投票

原来,我不得不在Build Phases中删除该库,然后按照iOS的说明进行操作。

似乎react native试图链接MapBox库失败,从而造成了一些垃圾。

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