无法在 React-Native (iOS) 中集成“Black Berry Dynamics”

问题描述

我按照以下步骤进行集成:-

https://github.com/blackberry/BlackBerry-Dynamics-React-Native-SDK/blob/master/modules/BlackBerry-Dynamics-for-React-Native-Base/README.md#blackberry-dynamics-sdk-for-ios

然后在 package.json ->

dependency {   
 "blackberry-dynamics-for-React-Native-Base": "file:../../node_modules/blackberry-dynamics-React-Native-SDK/modules/blackberry-dynamics-for-React-Native-Base"
}

在构建 react-native iOS 应用程序时,我遇到了这个问题:-

error Could not find the following native modules: BbdRNBase. Did you forget to run "pod install" ?

一旦我移动到我的 iOS 文件夹并运行 pod install,我就会面临如下问题:-

[!] Unable to find a specification for `BlackBerryDynamics` depended upon by `BbdRNBase`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

我的反应版本是 0.64 Xcode 版本是:- 12.1

解决方法

您是否运行了以下步骤?

$ cd ios $ pod install $ cd .. $ react-native run-ios

,

回答希望对某人有帮助,

这可能是react-native项目安装黑莓的问题,

第一步

Run command :- npm install ********path to the blackberry reactnative base folder********

步骤 2

Check if package.json have blackberry now like this :- 
[![enter image description here][1]][1]
*note* path may be different,it depends from where you installed it.

第 3 步:-

Check if pod file have now black berry like this
pod 'BlackBerryDynamics',:path => '../node_modules/BlackBerry-Dynamics-for-React-Native-Base/ios/BlackBerryDynamics'

if not please add it manually.

就这样

现在是运行 cd ios && pod install 的时候了。