简体   繁体   English

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

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

I followed these steps to integrate:-我按照以下步骤进行整合:-

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

and then in package.json ->然后在 package.json ->

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

While building the react-native iOS app I am getting this issue:-在构建 react-native iOS 应用程序时,我遇到了这个问题:-

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

Once I moved to my iOS folder and run pod install I am facing issue like:-一旦我移动到我的 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.

My react-version is 0.64 Xcode version is:- 12.1我的反应版本是 0.64 Xcode 版本是:- 12.1

Did you run the following steps?您是否执行了以下步骤?

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

Answering in hope that it may helps someone,回答希望它可以帮助某人,

This may be the issue of installation of the blackberry in the react-native project,这可能是react-native项目中安装blackberry的问题,

Step 1步骤1

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

Step 2第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.

Step 3:-第 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.

That's it而已

Now it's time to run cd ios && pod install.现在是时候运行 cd ios && pod install。

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

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