Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle exec pod update fails with EEXIST for cache file #12228

Closed
paulschreiber opened this issue Jan 29, 2024 · 1 comment
Closed

bundle exec pod update fails with EEXIST for cache file #12228

paulschreiber opened this issue Jan 29, 2024 · 1 comment

Comments

@paulschreiber
Copy link

paulschreiber commented Jan 29, 2024

Command

/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/bin/pod update

Report

  • What did you do? bundle exec pod update

  • What did you expect to happen? updated CocoaPods

  • What happened instead? this error

Moving aside the Cache folder (mv /Users/paul/Library/Caches/CocoaPods/ /tmp and re-running the command did not fix the problem. Same error with bundle exec pod install.

Stack

   CocoaPods : 1.15.0
        Ruby : ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
    RubyGems : 3.5.4
        Host : macOS 14.3 (23D56)
       Xcode : 15.2 (15C500b)
         Git : git version 2.43.0
Ruby lib dir : /Users/paul/.rbenv/versions/3.2.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
use_frameworks! :linkage => :static

$RNMapboxMapsImpl = 'mapbox'

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

platform :ios, '13.0'
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

target 'Terraso LandPKS' do
  use_expo_modules!
  post_integrate do |installer|
    begin
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    end
  end
  pod 'MapboxMaps', '10.16.3'

  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()


  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming versions of React Native may rely on get_default_flags(), but
    # we make it explicit here to aid in the React Native upgrade process.
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    #:flipper_configuration => flipper_config,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'Terraso LandPKSTests' do
    inherit! :complete
    # Pods for testing
  end

  pre_install do |installer|
    $RNMapboxMaps.pre_install(installer)
  end

  post_install do |installer|
    $RNMapboxMaps.post_install(installer)
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings["CC"] = "clang"
        config.build_settings["LD"] = "clang"
        config.build_settings["CXX"] = "clang++"
        config.build_settings["LDPLUSPLUS"] = "clang++"
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
      end
    end
  end
end

Error

Errno::EEXIST - File exists @ syserr_fail2_in - /Users/paul/Library/Caches/CocoaPods/Pods/External/hermes-engine/5df12dbc95c668b41daf048d87668c93-90e40/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/Resources
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2266:in `symlink'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2266:in `copy'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1058:in `block in copy_entry'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2397:in `wrap_traverse'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2400:in `block in wrap_traverse'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2399:in `each'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2399:in `wrap_traverse'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1055:in `copy_entry'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:1000:in `block in cp_r'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2481:in `block in fu_each_src_dest'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2490:in `block in fu_each_src_dest0'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2488:in `each'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2488:in `fu_each_src_dest0'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:2479:in `fu_each_src_dest'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/3.2.0/fileutils.rb:999:in `cp_r'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:343:in `block (2 levels) in copy_files'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:341:in `each'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:341:in `block in copy_files'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:128:in `lock'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:99:in `write_lock'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:332:in `copy_files'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:269:in `block (2 levels) in uncached_pod'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:265:in `each'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:265:in `block in uncached_pod'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:291:in `in_tmpdir'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:238:in `uncached_pod'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/downloader.rb:42:in `download'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_downloader.rb:69:in `download!'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_installer.rb:117:in `download_source'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer/pod_source_installer.rb:67:in `install!'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:621:in `install_source_of_pod'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:539:in `block (2 levels) in install_pod_sources'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/user_interface.rb:86:in `titled_section'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:538:in `block in install_pod_sources'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:535:in `each'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:535:in `install_pod_sources'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:258:in `block in download_dependencies'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/user_interface.rb:64:in `section'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:257:in `download_dependencies'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/installer.rb:163:in `install!'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/command/update.rb:63:in `run'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/lib/cocoapods/command.rb:52:in `run'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.15.0/bin/pod:55:in `<top (required)>'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/bin/pod:25:in `load'
/Users/paul/.dev/techmatters/terraso-mobile-client/dev-client/vendor/bundle/ruby/3.2.0/bin/pod:25:in `<top (required)>'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli/exec.rb:58:in `load'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli/exec.rb:58:in `kernel_load'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli/exec.rb:23:in `run'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli.rb:492:in `exec'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli.rb:34:in `dispatch'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/cli.rb:28:in `start'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/exe/bundle:37:in `block in <top (required)>'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/Users/paul/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.16/exe/bundle:29:in `<top (required)>'
/Users/paul/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
/Users/paul/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
@paulb777
Copy link
Member

Closed in favor of duplicate #12226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants