繁体   English   中英

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

[英]Unable to integrate “Black Berry Dynamics” in React-Native (iOS)

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

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项目中安装blackberry的问题,

步骤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。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM