首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >更新本机响应从0.59到0.64.2 -没有这样的文件或目录@ rb_sysopen

更新本机响应从0.59到0.64.2 -没有这样的文件或目录@ rb_sysopen
EN

Stack Overflow用户
提问于 2021-06-29 15:27:44
回答 1查看 3.9K关注 0票数 1

我试图更新的反应本机应用程序从0.59到0.64,它是在0.59,它允许做荚安装。

当我用0.59版本执行pod安装时的结果

本地@test xcode % test.xcodeproj删除了1‘复制Pods参考资料’构建阶段。删除1‘检查Manifest.lock’构建阶段。删除1‘嵌入Pods框架的构建阶段。

  • Pods_test.framework删除了1 'Check Pods Manifest.lock‘构建阶段。删除1‘嵌入Pods框架’构建phases.
  • Pods_AppTests.framework
  • Pods-AppTests.debug.xcconfig
  • Pods-AppTests.debug integrado.xcconfig
  • Pods-AppTests.debug homolog.xcconfig
  • Pods-AppTests.debug prod.xcconfig
  • Pods-AppTests.release.xcconfig,删除project
  • Pods-App.debug.xcconfig
  • Pods-App.debug integrado.xcconfig
  • Pods-App.debug test.xcconfig
  • Pods-App.debug prod中的Pod文件引用。xcconfig
  • Pods-App.release.xcconfig删除Pods目录.

项目已经解体。项目中没有留下CocoaPods的痕迹。注意:引用Pods项目的工作区仍然保持不变。本地@test xcode %

吊舱安装

针对目标test_app:BVLinearGradient、RNDeviceInfo、RNFS、RNGestureHandler、RNPermissions、RNReanimated、RNScreens、React -本机-调整、反应-本机-dynatrace、area本机-安全区域-上下文和react-本机-webview分析下载依赖关系,生成Pods项目

集成客户端项目Pod安装完成!Podfile中有60个依赖项,总共安装了52个豆荚。

好了!您的项目没有显式指定CocoaPods主规范回购。由于CDN现在是默认的,您可以通过pod repo remove master安全地从repos目录中删除它。若要取消此警告,请将warn_for_unused_master_specs_repo => false添加到您的Podfile中。

现在,0.64版本将生成下一个版本

吊舱安装

本地@test xcode % podspec分析依赖项,从Folly./Libraries/react-native/third-party-podspecs/Folly.podspec获取podspec

--标记模板―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

命令

代码语言:javascript
运行
复制
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod install

报告

  • 你做了什么?

  • ,你预期会发生什么?

  • 到底发生了什么?

堆栈

代码语言:javascript
运行
复制
   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.7 (19H15)
       Xcode : 12.2 (12B45b)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 3d73ef307c2c254ec6e2548eacc35d461958bfa0

               test.local-framework-pod-specs - git - http://test.local/framework/pod-specs.git @ 56f9f70f6160741426743b240f58847c105d6c78

               trunk - CDN - https://cdn.cocoapods.org/

插件

代码语言:javascript
运行
复制
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

错误

代码语言:javascript
运行
复制
Errno::ENOENT - No such file or directory @ rb_sysopen -
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open-uri.rb:37:in `open'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:19:in `block in fetch'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:86:in `titled_section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/external_sources/podspec_source.rb:11:in `fetch'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:989:in `fetch_external_source'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:968:in `block (2 levels) in fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `each'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:967:in `block in fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:966:in `fetch_external_sources'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:117:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.10.1_1/libexec/bin/pod:23:in `<main>'

--模板端――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

好了!哦,不,发生了一个错误。

搜索与您的问题相似的现有GitHub问题:https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory+%40+rb_sysopen+-

如果不存在,请在:https://github.com/CocoaPods/CocoaPods/issues/new上创建一个上面显示的模板的票证

请务必先阅读投稿指南,了解如何正确提交票证的详细信息:https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

别忘了匿名任何私人资料!

寻找有关cocoapods/cocoapods的相关问题。没有发现类似的问题。若要创建新一期,请访问:https://github.com/cocoapods/cocoapods/issues/new

podfile

代码语言:javascript
运行
复制
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

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

  # Pods for Test
  pod 'CardIO' #5.4.1 version
  # dependences base react
  pod 'React', :path => './Libraries/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTImage',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTLinkingIOS',
    'RCTAnimation',
    # needed for debugging
  # Add any other subspecs you want to use in your project
  ]
  pod 'yoga', :path => './Libraries/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => './Libraries/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => './Libraries/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => './Libraries/react-native/third-party-podspecs/Folly.podspec'
  # dependences react
  pod 'RNGestureHandler', :path => './Libraries/react-native-gesture-handler'
  pod 'BVLinearGradient', :path => './Libraries/react-native-linear-gradient'
  
  pod 'RNDeviceInfo', :path => './Libraries/react-native-device-info'
  pod 'RNFS', :path => './Libraries/react-native-fs'
  pod 'RNPermissions', :path => './Libraries/react-native-permissions'
  pod 'Permission-Camera', :path => './Libraries/react-native-permissions/ios/Camera.podspec'
  
  pod 'react-native-webview', :path => './Libraries/react-native-webview'
  # Adjust

  pod 'react-native-adjust', :path => './Libraries/react-native-adjust'
  target 'TestTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'TestUITests' do
    # Pods for testing
  end

end

EN

回答 1

Stack Overflow用户

发布于 2021-06-29 16:46:47

我修正了错误。

如果有人有这个问题,你应该做下一个。

在0.59版本中使用下一个

代码语言:javascript
运行
复制
pod 'Folly', :podspec => './Libraries/react-native/third-party-podspecs/Folly.podspec'

但是它改变了下一个图书馆

代码语言:javascript
运行
复制
  # The prefix to react-native
  prefix =  "./Libraries/react-native"
  options={}
  
  # Include DevSupport dependency
  production = options[:production] ||= false

pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT- 
Folly.podspec"

Podfile

代码语言:javascript
运行
复制
   The prefix to react-native
   prefix =  "./Libraries/react-native"
   options={}

    # dependences base react 
pod 'FBLazyVector', :path => "#{prefix}/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "#{prefix}/React/FBReactNativeSpec"
pod 'RCTRequired', :path => "#{prefix}/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "#{prefix}/Libraries/TypeSafety"
pod 'React', :path => "#{prefix}/"
pod 'React-Core', :path => "#{prefix}/"
pod 'React-CoreModules', :path => "#{prefix}/React/CoreModules"
pod 'React-RCTActionSheet', :path => "#{prefix}/Libraries/ActionSheetIOS"
pod 'React-RCTAnimation', :path => "#{prefix}/Libraries/NativeAnimation"
pod 'React-RCTBlob', :path => "#{prefix}/Libraries/Blob"
pod 'React-RCTImage', :path => "#{prefix}/Libraries/Image"
pod 'React-RCTLinking', :path => "#{prefix}/Libraries/LinkingIOS"
pod 'React-RCTNetwork', :path => "#{prefix}/Libraries/Network"
pod 'React-RCTSettings', :path => "#{prefix}/Libraries/Settings"
pod 'React-RCTText', :path => "#{prefix}/Libraries/Text"
pod 'React-RCTVibration', :path => "#{prefix}/Libraries/Vibration"
pod 'React-Core/RCTWebSocket', :path => "#{prefix}/"

unless production
  pod 'React-Core/DevSupport', :path => "#{prefix}/"
end

pod 'React-cxxreact', :path => "#{prefix}/ReactCommon/cxxreact"
pod 'React-jsi', :path => "#{prefix}/ReactCommon/jsi"
pod 'React-jsiexecutor', :path => "#{prefix}/ReactCommon/jsiexecutor"
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector"
pod 'React-callinvoker', :path => "#{prefix}/ReactCommon/callinvoker"
pod 'React-runtimeexecutor', :path => "#{prefix}/ReactCommon/runtimeexecutor"
pod 'React-perflogger', :path => "#{prefix}/ReactCommon/reactperflogger"
pod 'ReactCommon/turbomodule/core', :path => "#{prefix}/ReactCommon"
pod 'Yoga', :path => "#{prefix}/ReactCommon/yoga", :modular_headers => true

pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec"
pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec"
pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"

if fabric_enabled
  pod 'React-Fabric', :path => "#{prefix}/ReactCommon"
  pod 'React-graphics', :path => "#{prefix}/ReactCommon/react/renderer/graphics"
  pod 'React-jsi/Fabric', :path => "#{prefix}/ReactCommon/jsi"
  pod 'React-RCTFabric', :path => "#{prefix}/React"
  pod 'RCT-Folly/Fabric', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"
end

if hermes_enabled
  pod 'React-Core/Hermes', :path => "#{prefix}/"
  pod 'hermes-engine', '~> 0.7.2'
  pod 'libevent', '~> 2.1.12'
end
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68181675

复制
相关文章

相似问题

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