首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用React-native-ble-plx配置React-native

使用React-native-ble-plx配置React-native
EN

Stack Overflow用户
提问于 2018-09-04 07:44:56
回答 1查看 932关注 0票数 1

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

在"3--IOS设置“的第一步,"pod install”我得到了这个错误,我不知道为什么,我遵循了确切的指南。

代码语言:javascript
复制
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$ 

这就是错误

代码语言:javascript
复制
"[!] Unable to find a specification for `react-native-ble-plx-swift` depended upon by `react-native-ble-plx`"
EN

回答 1

Stack Overflow用户

发布于 2018-11-03 02:38:06

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

代码语言:javascript
复制
pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'

保存它

运行pod install

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52157159

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档