Mapbox React Native Ios

问题描述

只是想知道在将“@react-native-mapBox-gl/maps”安装到 Ios React Native 应用程序后是否有人熟悉此错误

我已按照说明安装并更新了 Podfile,并且正在使用最新的 8.02beta 版 npm 库。

  Referenced from: /Users/benjaminwatts/Library/Developer/CoreSimulator/Devices/B9E73FD7-5C1C-4F93-AA54-D779ED8381AE/data/Containers/Bundle/Application/FC4BA852-160C-4E9F-8601-3EBFAE4AAD26/hillbaggermobile.app/Frameworks/MapBox.framework/MapBox
  Reason: image not found
dyld: launch,loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/benjaminwatts/Library/Developer/CoreSimulator/Caches/dyld/19H524/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/benjaminwatts/Library/Developer/Xcode/DerivedData/hillbaggermobile-epwacafnlywpvtfyuoeyrsvpsnos/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Libra
(lldb) 

我怀疑 MapBox 缺少一个我不知道的本机依赖项,​​只是想知道是否有人熟悉

解决方法

最新版本的 Cocoapods 和 MapBoxGl 存在一个已知问题。解决这个问题的方法是降级你的 Cocoapods 版本,它会起作用。我可以确认它适用于 Cocoapods 版本 - 1.9.3

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...