0

我按照以下步骤进行整合:-

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

4

2 回答 2

0

回答希望它可以帮助某人,

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

步骤1

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 了。

于 2021-06-18T13:44:21.047 回答
0

您是否执行了以下步骤?

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

于 2021-05-26T14:16:05.953 回答