Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native Can';t在react native 0.60.3上安装react native unimodules_React Native_Cocoapods_React Native Ios_Podspec_Podfile - Fatal编程技术网

React native Can';t在react native 0.60.3上安装react native unimodules

React native Can';t在react native 0.60.3上安装react native unimodules,react-native,cocoapods,react-native-ios,podspec,podfile,React Native,Cocoapods,React Native Ios,Podspec,Podfile,与纱线安装模块一起安装 说明中的下一步要求我编辑我的项目文件。必要的补充是: 这是我的结果文件 platform :ios, '10.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' require_relative '../node_modules/react-native-unimodules/cocoapods.rb' target 'MyProject

纱线安装模块一起安装

说明中的下一步要求我编辑我的项目文件。必要的补充是:

这是我的结果文件

platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
target 'MyProjectName' do
  # Pods for MyProjectName
  pod 'React', :path => '../node_modules/react-native/', :subspecs => [
    'Core',
    'CxxBridge',
    'DevSupport',
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTAnimation',
    'RCTImage',
  ]
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
  use_unimodules!

  target 'MyProjectNameTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'MyProjectName-tvOS' do
  # Pods for MyProjectName-tvOS

  target 'MyProjectName-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

下一步是运行
pod install
,这将给出以下输出/错误:

$pod安装
安装Unicode模块:
世博会应用程序加载器-provider@5.0.1来自../node_模块/expo应用程序加载程序提供商/ios
博览会-constants@5.0.1来自../node_模块/expo常量/ios
世博档案-system@5.0.1来自../node_模块/expo文件系统/ios
博览会-permissions@5.0.1来自../node_模块/expo权限/ios
unimodules条码扫描器-interface@2.0.1来自../node_模块/unimodules条形码扫描仪接口/ios
单模块照相机-interface@2.0.1来自../node_模块/unimodules摄像头接口/ios
单模常数-interface@2.0.1来自../node_模块/unimodules常量接口/ios
单模块-core@2.0.1来自../node_modules/@unimodules/core/ios
单模块人脸检测器-interface@2.0.1来自../node_模块/unimodules人脸检测接口/ios
unimodules文件系统-interface@2.0.1来自../node_modules/unimodules文件系统接口/ios
unimodules字体-interface@2.0.1来自../node_模块/unimodules字体界面/ios
unimodules图像加载程序-interface@2.0.1来自../node_模块/unimodules图像加载程序接口/ios
单模块权限-interface@2.0.1来自../node_模块/unimodules权限界面/ios
单模块本机反应-adapter@2.0.1来自../node_modules/@unimodules/react native adapter/ios
单模块传感器-interface@2.0.1来自../node_模块/unimodules传感器接口/ios
unimodules任务管理器-interface@2.0.1来自../node_模块/unimodules任务管理器界面/ios
分析依赖关系
正在从“../node\u modules/expo app loader provider/ios”获取“ExappLoader provider”的podspec`
正在从`../node\u modules/expo constants/ios获取'EXConstants'的podspec`
正在从“../node\u modules/expo file system/ios”获取“EXFileSystem”的podspec`
正在从“../node\u模块/expo权限/ios”获取“EXPermissions”的podspec`
正在从`../node\u modules/React native/React获取'React Core'的podspec`
正在从“../node\u modules/React native/React”获取“React DevSupport”的podspec`
正在从“../node\u modules/React native/Libraries/ActionSheetIOS”获取“React RCTActionSheet”的podspec`
正在从“../node\u modules/React native/Libraries/NativeAnimation”获取“React RCTAnimation”的podspec`
正在从“../node\u modules/React native/Libraries/Blob”获取“React RCTBlob”的podspec`
正在从`../node\u modules/React native/Libraries/Image获取'React RCTImage'的podspec`
正在从“../node\u modules/React native/Libraries/LinkingIOS”获取“React RCTLinking”的podspec`
正在从“../node\u modules/React native/Libraries/Network”获取“React RCTNetwork”的podspec`
正在从“../node\u modules/React native/Libraries/Settings”获取“React RCTSettings”的podspec`
正在从“../node\u modules/React native/Libraries/Text”获取“React RCTText”的podspec`
正在从“../node\u modules/React native/Libraries/Vibration”获取“React RCTVibration”的podspec`
正在从“../node\u modules/React native/Libraries/WebSocket”获取“React RCTWebSocket”的podspec`
正在从“../node\u modules/React native/ReactCommon/cxreact”获取“React cxreact”的podspec`
正在从“../node\u modules/React native/Libraries/fishhook”获取“React fishhook”的podspec`
正在从“../node\u modules/React native/ReactCommon/jsi”获取“React jsi”的podspec`
正在从“../node\u modules/React native/ReactCommon/jsiexecutor”获取“React jsiexecutor”的podspec`
正在从“../node\u modules/React native/ReactCommon/jsinspector”获取“React jsinspector”的podspec`
正在从“../node\u modules/React native”获取“React”的podspec/`
正在从“../node\u modules/unimodules条形码扫描仪接口/ios”获取“UMBarCodeScannerInterface”的podspec`
正在从“../node\u modules/unimodules-camera-interface/ios”获取“UMCameraInterface”的podspec`
正在从“../node\u modules/unimodules常量接口/ios”获取“UMConstantsInterface”的podspec`
正在从`../node\u modules/@unimodules/core/ios获取'UMCore'的podspec`
正在从“../node\u modules/unimodules人脸检测接口/ios”获取“UMFaceDetectorInterface”的podspec`
正在从“../node\u modules/unimodules文件系统接口/ios”获取“UMFileSystemInterface”的podspec`
正在从“../node\u modules/unimodules font-interface/ios”获取“UMFontInterface”的podspec`
正在从“../node\u modules/unimodules图像加载程序接口/ios”获取“UMImageLoaderInterface”的podspec`
正在从“../node\u modules/unimodules permissions interface/ios”获取“UMPermissionsInterface”的podspec`
正在从“../node\u modules/@unimodules/react native adapter/ios”获取“umreactiveadapter”的podspec`
正在从“../node\u modules/unimodules sensors interface/ios”获取“UMSensorsInterface”的podspec`
正在从“../node\u modules/unimodules任务管理器接口/ios”获取“UMTaskManagerInterface”的podspec`
正在从“../node\u modules/react native/react common/yoga”获取“yoga”的podspec`
[!]CocoaPods找不到pod“React/Core”的兼容版本:
在Podfile中:
React/Core(来自“../node\u modules/React native/”)
没有一个规范源包含满足以下依赖关系的规范:`React/Core(from`../node\u modules/React native/``)。
你有:
*过期的源repo,您可以使用'pod repo update'或'pod install--repo update'进行更新。
*输入了错误的名称或版本。
*未将承载Podspec的源repo添加到您的Podfile中。
注意:从cocoapods1.0开始,默认情况下,`pod repo update`不会发生在`pod install`上。
在回答a之后,我搜索了整个项目目录中的文件内容,没有找到任何地方。
React Core
可能被错误地定义为
React/Core

这是我第一次编辑播客文件,我担心我可能已经编辑过了
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'MyApp' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MyApp

  pod 'RNDeviceInfo',         :path => '../node_modules/react-native-device-info'
  pod 'FBLazyVector',         :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'RCTRequired',          :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety',        :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'FBReactNativeSpec',    :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'React-RCTVibration',   :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTSettings',    :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText',        :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTLinking',     :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTImage',       :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTNetwork',     :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation',   :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob',        :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-cxxreact',       :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi',            :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor',    :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector',    :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'React-CoreModules',    :path => '../node_modules/react-native/React/CoreModules'
  pod 'ReactCommon',          :path => '../node_modules/react-native/ReactCommon'
  pod 'React-Core',           :path => '../node_modules/react-native'
  pod 'React',                :path => '../node_modules/react-native'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog',             :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly',            :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end