所以我遵循了这个指南:"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`"发布于 2018-11-03 02:38:06
打开位于./ios文件夹内的Podfile并添加以下行
pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'保存它
运行pod install
https://stackoverflow.com/questions/52157159
复制相似问题