【问题标题】:Unable to integrate "Black Berry Dynamics" in React-Native (iOS)无法在 React-Native (iOS) 中集成“Black Berry Dynamics”
【发布时间】:2021-05-26 09:49:05
【问题描述】:

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

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

【问题讨论】:

  • 您在声明package.json 下的依赖项时使用的语法似乎不正确。您能检查一下您的npm installyarn install 是否运行正常吗?
  • 嗨@kenmistry,感谢它在应用程序中安装了黑莓,并且还遇到了新问题,问题:- 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“未设置委托属性。要么调用 [GDiOS authorize:] 并传递一个实现 GDiOSDelegate 协议的对象,要么在调用 [GDiOS authorize] 之前设置 GDiOS 实例的委托属性。
  • 你的意思是这个问题描述的错误已经解决了吗? GDiOS 的这个新错误可能是由于 pod 框架没有正确嵌入。您检查过this 下的Copy 步骤了吗?
  • 是的,又做了一次,但同样的错误。

标签: ios react-native blackberry xcode12 blackberry-dynamics


【解决方案1】:

您是否执行了以下步骤?

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

【讨论】:

    【解决方案2】:

    回答希望对某人有所帮助,

    这可能是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 了。

    【讨论】:

      猜你喜欢
      • 2023-04-05
      • 1970-01-01
      • 2019-06-16
      • 2018-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-22
      • 2020-10-30
      相关资源
      最近更新 更多