{
"name": "Speed_Dating",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios --simulator=\"iPhone 13 Pro Max\"",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.15.14",
"@react-native-community/checkbox": "^0.5.9",
"@react-native-community/datetimepicker": "^5.1.0",
"@react-native-community/geolocation": "^2.0.2",
"@react-native-community/viewpager": "^5.0.11",
"@react-native-firebase/app": "^14.2.1",
"@react-native-firebase/firestore": "^14.2.2",
"@react-native-firebase/messaging": "^14.2.1",
"@react-native-picker/picker": "^2.2.1",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5",
**"@types/react-native-webrtc": "^1.75.5",**
"firebase": "^9.8.1",
"moment": "^2.29.3",
"react": "17.0.2",
"react-native": "0.66.4",
"react-native-code-push": "^7.0.4",
"react-native-date-picker": "^4.1.3",
"react-native-emoji-board": "^1.2.1",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-image-picker": "^4.6.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-location": "^2.5.0",
"react-native-material-menu": "^2.0.0",
"react-native-multiple-select": "^0.5.9",
"react-native-onesignal": "^4.3.9",
"react-native-paper": "^4.11.1",
"react-native-picker-select": "^8.0.4",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.10.1",
"react-native-sound": "^0.11.2",
"react-native-toast-message": "^2.1.1",
"react-native-vector-icons": "^9.0.0",
"react-native-video": "^5.2.0",
**"react-native-webrtc": "^1.94.1",**
"react-native-webview": "^11.16.0",
"react-navigation": "^4.4.4",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"redux-persist": "^6.0.0"
},
"devDependencies": {
"@babel/core": "7.16.7",
"@babel/runtime": "7.16.7",
"@react-native-community/eslint-config": "2.0.0",
"@types/jest": "^27.4.0",
"@types/react": "^17.0.38",
"@types/react-native": "^0.66.11",
"@types/react-test-renderer": "^17.0.1",
"babel-jest": "26.6.3",
"eslint": "7.14.0",
"jest": "26.6.3",
"jetifier": "^2.0.0",
"metro-react-native-babel-preset": "0.66.2",
"react-test-renderer": "17.0.2",
"typescript": "^4.5.4"
},
"jest": {
"preset": "react-native"
}
}
它在android中工作正常,但是当我尝试在IOS中运行时,我在运行后运行
pod install
,抛出该错误!
解决方案
调整支持的平台版本
重要提示: 确保您使用的是 CocoaPods 1.10 或更高版本。 您可能需要更改 podfile 中的 platform 字段。 react-native-webrtc 不支持 iOS < 12 Set it to '12.0' or above or you'll get an error when running pod install。
platform :ios, '12.0'
为了确保清除 Cocoapods 的所有旧痕迹,我建议执行以下步骤:
通过执行以下步骤,您可以确保您的项目具有最新的依赖项,并准备好使用最新版本的 Xcode 进行开发。
更新平台:ios'11.0'到平台:ios'13.0'对我有用。