【问题标题】:Configuring React-native with React-native-ble-plx使用 React-native-ble-plx 配置 React-native
【发布时间】:2018-09-03 23:44:55
【问题描述】:

所以我遵循了这个指南:“https://blog.expo.io/so-you-want-to-build-a-bluetooth-app-with-react-native-and-expo-6ea6a31a151d

在第一步的“3--IOS 设置”中,“pod install”我收到此错误我不知道为什么,我按照确切的指南进行操作。

Ibrahims-MacBook-Pro:MyCar ibrahim$ cd ./ios
Ibrahims-MacBook-Pro:ios ibrahim$ pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.5.10`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `react-native-ble-plx` from `../node_modules/react-native-ble-plx`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
[!] Unable to find a specification for `react-native-ble-plx-swift` depended upon by `react-native-ble-plx`
Ibrahims-MacBook-Pro:ios ibrahim$ 

这是错误

"[!] Unable to find a specification for `react-native-ble-plx-swift` depended upon by `react-native-ble-plx`"

【问题讨论】:

    标签: reactjs react-native bluetooth bluetooth-lowenergy


    【解决方案1】:

    打开位于 ./ios 文件夹内的 Podfile 并添加这一行

    pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'
    

    保存

    运行pod install

    【讨论】:

      猜你喜欢
      • 2021-02-21
      • 2018-12-25
      • 1970-01-01
      • 2021-02-17
      • 2021-09-16
      • 1970-01-01
      • 2022-12-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多